/20-active_storage

Ruby on Rails #20 ActiveStorage - attach avatar, attach images

Primary LanguageRuby

Ruby on Rails Active Storage app example

How to use Credentials in Ruby on Rails 6? TLDR

CORS example:

[
  {
    "AllowedHeaders": [
      "*"
    ],
    "AllowedMethods": [
      "GET",
      "POST",
      "PUT"
    ],
    "AllowedOrigins": [
      "https://superails.herokuapp.com",
      "https://4709a2f39b264a28ac87e8cc7246bcda.vfs.cloud9.eu-central-1.amazonaws.com"
    ],
    "ExposeHeaders": []
  }
]

or

[
  {
    "AllowedHeaders": [
      "*"
    ],
    "AllowedMethods": [
      "GET",
      "POST",
      "PUT"
    ],
    "AllowedOrigins": [
      "*"
    ],
    "ExposeHeaders": []
  }
]