You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The upgrade of nelmio/cors-bundle in the api-packhere broke CORS requests.
How to reproduce
cd api
composer update
cd ..
docker-compose build api
docker-compose up -d api
Then attempt to access a resource via admin, and you'll see a 405 on the OPTIONS request.
Possible Solution
Lock down the version of api-pack to require a version that depends on nelmio/cors-bundle:^1.5.
Additional Context
I ran composer update as part of upgrading a v2.4.5 installation to a v2.5.1. I went through the diff and couldn't identify any additional configuration that resolved this issue. I resolved the issue locally by forcing lower version of nelmio/cors-bundle. Ex:
cd api
composer require "nelmio/cors-bundle:^1.5"
cd ..
docker-compose build api
docker-compose up -d api
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 2.5.1
Description
The upgrade of
nelmio/cors-bundle
in theapi-pack
here broke CORS requests.How to reproduce
Then attempt to access a resource via admin, and you'll see a
405
on theOPTIONS
request.Possible Solution
Lock down the version of
api-pack
to require a version that depends onnelmio/cors-bundle:^1.5
.Additional Context
I ran
composer update
as part of upgrading av2.4.5
installation to av2.5.1
. I went through the diff and couldn't identify any additional configuration that resolved this issue. I resolved the issue locally by forcing lower version ofnelmio/cors-bundle
. Ex:The text was updated successfully, but these errors were encountered: