带有symfony的CORS Api [英] CORS Api with symfony
本文介绍了带有symfony的CORS Api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该使用Symfony制作跨域API。
有一些捆绑吗?
I should make cross domain API with Symfony. There is some bundle for that?
我尝试了FOS Rest Bundle,但似乎没有解决我的问题。
I have tried FOS Rest Bundle but did not seem have solved my problem.
推荐答案
我建议您使用NelmioCorsBundle:
I advise you to use NelmioCorsBundle:
https://github.com/nelmio/NelmioCorsBundle
此捆绑包可让您发送跨域具有ACL样式的每个URL配置的资源共享标头。
This bundle allows you to send Cross-Origin Resource Sharing headers with ACL-style per-URL configuration.
对于CORS问题非常有用
Is very useful for CORS problem
这篇关于带有symfony的CORS Api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文