You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a Cross-Origin Request issue after migrating from Webpacker + Sprockets to Importmaps + Propshaft in my Rails application, which is deployed using Kamal2 in production. All the assets are served via our CDN and we did configure config.asset_host with the base URL of our CDN in production.rb.
Here is a couple details of our application:
Rails: v7.1.4.1
importmap-rails: latest
propshaft: latest
For CSS, we are using dartsass-rails and looks like all the CSS have been loaded just fine. However, all the JS files (e.g. Stimulus controller, channels) are blocked due to CORS issue.
Could anyone provide guidance on resolving this issue or suggest further troubleshooting steps? Any insights or similar experiences would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi there,
I'm experiencing a Cross-Origin Request issue after migrating from Webpacker + Sprockets to Importmaps + Propshaft in my Rails application, which is deployed using Kamal2 in production. All the assets are served via our CDN and we did configure
config.asset_host
with the base URL of our CDN inproduction.rb
.Here is a couple details of our application:
For CSS, we are using
dartsass-rails
and looks like all the CSS have been loaded just fine. However, all the JS files (e.g. Stimulus controller, channels) are blocked due to CORS issue.Could anyone provide guidance on resolving this issue or suggest further troubleshooting steps? Any insights or similar experiences would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: