edit cors
This commit is contained in:
parent
3025c88ef7
commit
31e8e4ac84
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user