瀏覽代碼

Gestion des CORS

Lou 2 年之前
父節點
當前提交
799863f03f
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      config/initializers/cors.rb

+ 1
- 2
config/initializers/cors.rb 查看文件

@@ -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…
取消
儲存