Skip to content

Releases: jdesrosiers/silex-cors-provider

v1.4.0

10 Mar 06:14
Compare
Choose a tag to compare

This release adds the ability to apply a different set of options to different routes.

v0.5.0

10 Mar 06:14
Compare
Choose a tag to compare

This release adds the ability to apply a different set of options to different routes.

v1.3.0

09 Mar 04:21
Compare
Choose a tag to compare

Added the cors.allowHeaders config. By default, all Access-Control-Request-Headers are allowed. If cors.allowHeaders is set, all headers in Access-Control-Request-Headers must be in cors.allowHeaders or the CORS request will be rejected.

v0.4.0

09 Mar 04:22
Compare
Choose a tag to compare

Added the cors.allowHeaders config. By default, all Access-Control-Request-Headers are allowed. If cors.allowHeaders is set, all headers in Access-Control-Request-Headers must be in cors.allowHeaders or the CORS request will be rejected.

v1.2.1

08 Mar 20:58
Compare
Choose a tag to compare

This fixes a bug introduced in the previous release. Because the OPTIONS route matches everything, it led to non-CORS requests returning 405 Method Not Allowed instead of 404 Not Found for non-existent resources. These requests now respond with 404 Not Found as expected.

v0.3.1

08 Mar 20:57
Compare
Choose a tag to compare

This fixes a bug introduced in the previous release. Because the OPTIONS route matches everything, it led to non-CORS requests returning 405 Method Not Allowed instead of 404 Not Found for non-existent resources. These requests now respond with 404 Not Found as expected.

v1.2.0

17 Feb 06:55
Compare
Choose a tag to compare

In this release I added the cors-enabled service. It is now the preferred way to enable CORS support, but the old way still works like it used to. The main benefit is that it works properly for controller collections and controllers. If you enable CORS support for the entire application (the typical case) then nothing has changed.

This release also includes a refactoring of the way OPTIONS support is implemented. The new implementation should be more efficient because it creates far fewer routes. It also fixes an issue where the silex-cors-provider has to be registered after an other providers that might create routes such as the silex-annotation-provider. Now the providers can be added in any order.

v0.3.0

17 Feb 06:54
Compare
Choose a tag to compare

In this release I added the cors-enabled service. It is now the preferred way to enable CORS support, but the old way still works like it used to. The main benefit is that it works properly for controller collections and controllers. If you enable CORS support for the entire application (the typical case) then nothing has changed.

This release also includes a refactoring of the way OPTIONS support is implemented. The new implementation should be more efficient because it creates far fewer routes. It also fixes an issue where the silex-cors-provider has to be registered after an other providers that might create routes such as the silex-annotation-provider. Now the providers can be added in any order.

v1.1.0

17 Feb 06:31
Compare
Choose a tag to compare

This release adds support for domain wildcards (#21) in cors.allowOrigin.

v0.2.0

17 Feb 06:39
Compare
Choose a tag to compare

This release adds support for domain wildcards (#21) in cors.allowOrigin.