问题 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. 回答1: 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 回答2: I'm not sure that's the right way, but I resolved for me: 1) Create new event subscriber (like ResponseSubscriber ) 2)