edit cors

This commit is contained in:
sam committed 2022-05-25 16:43:41 +04:30
1 parent 3025c88ef7
commit 31e8e4ac84
2 files changed
+6 -3

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
Rails.application.config.middleware.insert_before 0, Rack::Cors do
config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'https://bitium.agency'
resource '*', headers: :any, methods: :any
origins '*'
resource '*', :headers => :any, :methods => [:get, :post, :options]
end
end