Has anyone thought about adding Access-Control headers for assets? Right now, I use asset_sync gem to send all assets to an S3 bucket after asset:precompile and use CloudFront to serve them, where the 3S bucket has Access-Control settings.
But if ActionDispatch::Static automatically (or with a proper config) puts the Access-Control headers for us, then there is no need to set it up and we can just change CloudFront to point directly to the Rails app.
Let me know what you think. Thanks for your time!