Sangfroid 1 жил өмнө
parent
commit
aefd56c949

+ 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