Recognition

No awards yet.

Posts

3 Posts
  • Published Answer

    Rails ActiveStorageDigitalOcean Spaces CORS

    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…
    Accepted Answer: 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…
    By connoshea
  • Published Question

    Rails ActiveStorageDigitalOcean Spaces CORS

    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...
    Accepted Answer: 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...
    1 By connoshea Ruby on Rails Ubuntu
  • Published Question

    Using Rails ActiveStorage with DigitalOcean Spaces CDN Custom Subdomain?

    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...
    2 By connoshea Ruby on Rails CDN DigitalOcean Ubuntu 18.04