I'm getting a CORS error when trying to upload an image to DigitalOcean Spaces, despite it working fine in development and test.
The error is as follows:
Access to XMLHttpRequest at 'https://vglist.sfo2.digitaloceans...
So I figured out that the reason this wasn't working is because I needed to set up CORS, and include some headers that Rails/Spaces needed. You need to go your DigitalOcean Spaces settings, then "Add" an Advanced CORS...
I'm working on setting up a custom subdomain for my site's Spaces CDN and was wondering if anyone has any advice on how to get my Rails app to actually return the custom subdomain URL for images instead of the digital...
Ruby on Rails