Browse Source

Gestion des CORS

Lou 2 years ago
parent
commit
799863f03f
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      config/initializers/cors.rb

+ 1
- 2
config/initializers/cors.rb View File

@@ -7,8 +7,7 @@
7 7
 
8 8
 Rails.application.config.middleware.insert_before 0, Rack::Cors do
9 9
   allow do
10
-    origins 'example.com' # To be changed
11
-
10
+    origins '*'
12 11
     resource '*',
13 12
       headers: :any,
14 13
       methods: [:get, :post, :put, :patch, :delete, :options, :head]

Loading…
Cancel
Save