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
The best and easiest way of doing this, is right click on the project
and select Cross-Origin Resource Sharing Filter