Explorar o código

Fix cors headers being missing when cached, fixes #791

Jordi Boggiano %!s(int64=7) %!d(string=hai) anos
pai
achega
17fcc4cafd
Modificáronse 2 ficheiros con 12 adicións e 10 borrados
  1. 3 1
      app/config/config.yml
  2. 9 9
      composer.lock

+ 3 - 1
app/config/config.yml

@@ -120,11 +120,13 @@ nelmio_cors:
     defaults:
         allow_origin: ['*']
         allow_headers: ['*']
-        max_age: 600
+        max_age: 3600
     paths:
         '^/packages/list\.json$':
             allow_methods: ['GET']
+            forced_allow_origin_value: '*'
         '^/search\.json$':
             allow_methods: ['GET']
         '^/packages/[^/]+/[^/]+\.json$':
             allow_methods: ['GET']
+            forced_allow_origin_value: '*'

+ 9 - 9
composer.lock

@@ -199,7 +199,7 @@
                 "dependency",
                 "package"
             ],
-            "time": "2017-05-16 19:20:34"
+            "time": "2017-05-16T19:20:34+00:00"
         },
         {
             "name": "composer/semver",
@@ -1233,7 +1233,7 @@
             "keywords": [
                 "User management"
             ],
-            "time": "2016-09-09 10:00:40"
+            "time": "2016-09-09T10:00:40+00:00"
         },
         {
             "name": "hwi/oauth-bundle",
@@ -2114,20 +2114,20 @@
         },
         {
             "name": "nelmio/cors-bundle",
-            "version": "1.4.1",
+            "version": "1.5.3",
             "source": {
                 "type": "git",
                 "url": "https://github.com/nelmio/NelmioCorsBundle.git",
-                "reference": "fa14a81737c605bf4766054cdcb72a16a433d537"
+                "reference": "ac6576a599d7db9c2c6022602c188a5594216056"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/nelmio/NelmioCorsBundle/zipball/fa14a81737c605bf4766054cdcb72a16a433d537",
-                "reference": "fa14a81737c605bf4766054cdcb72a16a433d537",
+                "url": "https://api.github.com/repos/nelmio/NelmioCorsBundle/zipball/ac6576a599d7db9c2c6022602c188a5594216056",
+                "reference": "ac6576a599d7db9c2c6022602c188a5594216056",
                 "shasum": ""
             },
             "require": {
-                "symfony/framework-bundle": "^2.2 || ^3.0"
+                "symfony/framework-bundle": "^2.7 || ^3.0"
             },
             "require-dev": {
                 "matthiasnoback/symfony-dependency-injection-test": "^0.7.6",
@@ -2136,7 +2136,7 @@
             "type": "symfony-bundle",
             "extra": {
                 "branch-alias": {
-                    "dev-master": "1.4.x-dev"
+                    "dev-master": "1.5.x-dev"
                 }
             },
             "autoload": {
@@ -2167,7 +2167,7 @@
                 "cors",
                 "crossdomain"
             ],
-            "time": "2015-12-09T17:26:34+00:00"
+            "time": "2017-04-24T09:12:42+00:00"
         },
         {
             "name": "nelmio/security-bundle",