edit cors
This commit is contained in:
1 parent
31e8e4ac84
commit
0797f9798d
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
config.middleware.insert_before 0, Rack::Cors do
|
# frozen_string_literal: true
|
||||||
|
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||||
allow do
|
allow do
|
||||||
origins '*'
|
origins '*'
|
||||||
resource '*', :headers => :any, :methods => [:get, :post, :options]
|
resource '*', :headers => :any, :methods => [:get, :post, :options]
|
||||||
|
|||||||
Reference in new issue
Block a user