简体   繁体   English

服务器上的Rails 6收到很多“ ActionController :: RoutingError:没有路由匹配[GET] /31194a065aebf1674b61.worker.js”的请求

[英]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.

相关问题 Ruby on Rails:PDF.JS ActionController :: RoutingError(没有路由与[GET]“ / pdf js / web / viewer.html”匹配): - Ruby on Rails: PDF.JS ActionController::RoutingError (No route matches [GET] “/pdf js/web/viewer.html”): 为什么我得到这个 ActionController::RoutingError (没有路由匹配 [GET] “/users/assets/application.js”) - Why I am getting this ActionController::RoutingError (No route matches [GET] “/users/assets/application.js”) ActionController :: RoutingError(没有路由与[GET]“ / javascripts / application.js”匹配) - ActionController::RoutingError (No route matches [GET] “/javascripts/application.js”) ActionController :: RoutingError(没有路由与[GET]匹配” / assets / javascripts - ActionController::RoutingError (No route matches [GET] "/assets/javascripts 如何从另一个Rails项目中调用JavaScript文件? ActionController :: RoutingError(没有路由与[GET]“ / assets / trackmetrics.js”匹配) - How do call a javascript file from another Rails project? ActionController::RoutingError (No route matches [GET] “/assets/trackmetrics.js”) Rails CORS:ActionController::RoutingError(没有路由匹配 [OPTIONS] "/batches"): - Rails CORS: ActionController::RoutingError (No route matches [OPTIONS] "/batches"): ActionController :: RoutingError(没有路由与[GET] controller_name / fusioncharts.widgets.js匹配 - ActionController::RoutingError (No route matches [GET] controller_name/fusioncharts.widgets.js ActionController :: RoutingError(没有路由匹配[GET]“/members/js/bootstrap.min.js"):(Missing资产文件) - ActionController::RoutingError (No route matches [GET] “/members/js/bootstrap.min.js”):(Missing Asset files) ActionController::RoutingError (没有路由匹配 [GET] “/vendor/assets/stylesheets/bootstrap.min.css”) - ActionController::RoutingError (No route matches [GET] “/vendor/assets/stylesheets/bootstrap.min.css”) ActionController :: RoutingError Rails和Angular - ActionController::RoutingError Rails and Angular
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM