This question already has an answer here:
- Enabling CORS in GeoServer (jetty)? 5 answers
My Gis Client Program, using OpenLayers, and my GeoServer were running on the same server, everything worked fine.
Now, I started a new instance of My Gis Client Program on another server. There, I get the following Problem:
WMS Layers work fine, but for the WFS Layer I get:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://mygeoserver/mylayerr. This can be fixed by moving the resource to the same domain or enabling CORS.
What can I do about that?