소스 검색

Ajout des Cors

Sangfroid 1 년 전
부모
커밋
aefd56c949
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      config/packages/nelmio_cors.yaml

+ 5 - 0
config/packages/nelmio_cors.yaml

@@ -8,3 +8,8 @@ nelmio_cors:
         max_age: 3600
     paths:
         '^/': null
+        '^/counter/':
+            allow_origin: ['*']
+            allow_headers: ['Content-Type']
+            allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
+            max_age: 3600