Closed BernardA closed 1 year ago
I know it been a while but did you find out a solution to your problem ?
I'm running into the exact same issue atm.
I found out that this bundle does not at all handle routes that do not pass through index.php
, like something in /public/images
.
So you will need to take care of that separately, like in .htaccess
.
I have an API-Platform app that is working fine on the
/api/
route, but running into CORS issue when trying toGET
images from the /public folder.It's just not adding the CORS headers to the response.
This is the config:
These are the headers when trying to access it from my client app:
Please note that I am using Symfony'S local web server. Just in case, this is my .htaccess file