且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从本地文件系统提供服务的Webworker无法正常工作

更新时间:2023-11-29 14:13:16

避免使用file:///进行开发-您会浪费时间进行调试,因为并非所有功能都应该在那里工作.

Avoid developing using file:/// - you'll waste time debugging, as not everything is supposed to work there.

如果是Firefox中的Worker(),则是一年前得到支持,但显然在Firefox 68中已禁用.

In case of Worker() in Firefox, this was supported a year ago, but was apparently disabled in Firefox 68.

请参见

See Firefox 68: local files now treated as cross-origin; is there a way to override? - if you set privacy.file_unique_origin to false in about:config, the example should work.