I\'m getting this error using ngResource to call a REST API on Amazon Web Services:
XMLHttpRequest cannot load http://server.apiurl.com:8000/s/login
The standalone distributions of GeoServer include the Jetty application server. Enable Cross-Origin Resource Sharing (CORS) to allow JavaScript applications outside of your own domain to use GeoServer.
Uncomment the following
and
from webapps/geoserver/WEB-INF/web.xml:
cross-origin
org.eclipse.jetty.servlets.CrossOriginFilter
cross-origin
/*