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
View File
@@ -155,6 +155,8 @@ GEM
nio4r (~> 2.0)
racc (1.6.0)
rack (2.2.3)
rack-cors (1.1.1)
rack (>= 2.0.0)
rack-proxy (0.7.2)
rack
rack-test (1.1.0)
@@ -275,6 +277,7 @@ DEPENDENCIES
jbuilder (~> 2.7)
listen (~> 3.2)
puma (~> 4.1)
rack-cors
rails (~> 6.0.5)
rails_12factor
sass-rails (>= 6)
+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