edit cors
This commit is contained in:
1 parent
3025c88ef7
commit
31e8e4ac84
2 files changed
+6
-3
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user