[英]Rails 6 on server getting a lot of “ActionController::RoutingError: No route matches [GET] /31194a065aebf1674b61.worker.js” requests
I have a rails 6 app on a server that's getting a lot of ActionController::RoutingError: No route matches [GET] /31194a065aebf1674b61.worker.js
requests. 我在服务器上有一个Rails 6应用,该服务器上有很多
ActionController::RoutingError: No route matches [GET] /31194a065aebf1674b61.worker.js
请求ActionController::RoutingError: No route matches [GET] /31194a065aebf1674b61.worker.js
。 Does anyone know what the xxx.worker.js
file is? 有人知道
xxx.worker.js
文件是什么吗? JavaScript-wise I'm using webpacker with Vue.js. JavaScript方面,我正在将Webpacker与Vue.js结合使用。 My guess is it's a webpacker thing, but I'm really not sure.
我的猜测是这是一个webpacker,但我不确定。
I found that the reason for this issue was with the Content Security Policy. 我发现此问题的原因与内容安全策略有关。 It wasn't allowing a blob worker source.
它不允许Blob工作者来源。 This was resolved by uncommenting
policy.worker_src :self, :blob
inside of the content_security_policy.rb
file. 通过取消注释
content_security_policy.rb
文件内的policy.worker_src :self, :blob
解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.