jsproxy-docker icon indicating copy to clipboard operation
jsproxy-docker copied to clipboard

Help me pls

Open vxmp opened this issue 3 years ago • 1 comments

Hi, I followed your guide, docker and nginx are deployed and started up, this error info appeared on the home page when accessed:

Failed to register a ServiceWorker for scope ('https://my.domain.com/') with script ('https://my.domain.com/sw.js'): The script has an unsupported MIME type ('text/html').

Is there a way to fix this? THX

vxmp avatar Nov 12 '22 11:11 vxmp

看这个报错是 http 返回头的 content-type 错了,js 文件的content-type 应该是 application/json。

manooog avatar Nov 15 '22 11:11 manooog