Overview of NelmioCorsBundle features
masterNelmioCorsBundle allows you to send Cross-Origin Resource Sharing (CORS) headers using ACL-style per-URL configuration.
Key features include:
- Handling CORS preflight
OPTIONSrequests. - Adding CORS headers to your application responses.
Important Note on Static Files: Because configuration happens at the PHP/application level, requests serving static files that do not pass through the Symfony kernel will not have CORS headers added. If you need to serve CORS for static files, you should configure these headers directly in your web server (e.g., Nginx or Apache).