Kaynağa Gözat

Update regexes, refs #652

Jordi Boggiano 9 yıl önce
ebeveyn
işleme
448c2e11c0
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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']