GlassFish: How to set Access-Control-Allow-Origin header

后端 未结 4 674
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 21:49

I am using the latest version of GlassFish. I want to set the Access-Control-Allow-Origin header in response so that my API which is hosted on GlassFish can be called from a

4条回答
  •  自闭症患者
    2020-12-05 22:20

    The best and easiest way of doing this, is right click on the project

    and select Cross-Origin Resource Sharing Filter

提交回复
热议问题