소스 검색

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…
취소
저장