CORS Api with symfony

Daniele Dolci picture Daniele Dolci · Sep 25, 2017 · Viewed 24.1k times · Source

I should make cross domain API with Symfony. There is some bundle for that?

I have tried FOS Rest Bundle but did not seem have solved my problem.

Answer

Alessandro Minoccheri picture Alessandro Minoccheri · Sep 25, 2017

I advise you to use NelmioCorsBundle:

https://github.com/nelmio/NelmioCorsBundle

This bundle allows you to send Cross-Origin Resource Sharing headers with ACL-style per-URL configuration.

Is very useful for CORS problem