Search code examples
symfonycorscross-domainsymfony-2.1

CORS Api with symfony


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.


Solution

  • 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