【发布时间】:2022-11-23 15:43:26
【问题描述】:
我使用宝石:
gem 'guard'
gem 'guard-livereload', require: false
gem 'rack-livereload'
gem 'rb-fsevent', require: false
并像在 Rails 6 中一样执行 bundle exec guard(没有问题)但是对于我的 Rails 7 应用程序,当我保存 CSS 并尝试重新加载它时出现错误:
“http://localhost:3000/seances”上的资源由于不正确的 MIME 类型(“text/html”)不正确(X-Content-Type-Options:nosniff)而被阻止。
我所有的 css 都被删除,但新的 css 不适用。
我该如何解决这个问题?
【问题讨论】:
标签: ruby-on-rails mime-types livereload ruby-on-rails-7 x-content-type-options