We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f02e97 + 6399aed commit 09a66beCopy full SHA for 09a66be
config/initializers/cors.rb
@@ -0,0 +1,6 @@
1
+Rails.application.config.middleware.insert_before 0, Rack::Cors do
2
+ allow do
3
+ origins '*'
4
+ resource /^\/api\/.+/, headers: :any, methods: [:get, :post, :patch, :put, :delete, :options, :head]
5
+ end
6
+end
0 commit comments