Browse Source

Update regexes, refs #652

Jordi Boggiano 9 years ago
parent
commit
448c2e11c0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/config/config.yml

+ 3 - 3
app/config/config.yml

@@ -116,9 +116,9 @@ nelmio_cors:
         allow_headers: ['*']
         max_age: 600
     paths:
-        '^\/packages\/list\.json':
+        '^/packages/list\.json$':
             allow_methods: ['GET']
-        '^\/search\.json':
+        '^/search\.json$':
             allow_methods: ['GET']
-        '^\/packages\/.*\/.*\.json':
+        '^/packages/[^/]+/[^/]+\.json$':
             allow_methods: ['GET']