AngularJS is designed to be a client-side application, meaning it renders in the client browser and does not run on the server. Therefore, you can't make a CORS
request to an AngularJS frontend. CORS in AngularJS creates requests from the application for resources on other domains, typically with GET
.
If your AngularJS application is connected to a JavaScript server, then you may be able to use CORS in the server application before sending the data to AngularJS. How you implement CORS depends on the server framework.
Isomorphic JavaScript runs the same codebase on the server and in the client browser. The JavaScript server is typically built with Node.js. In an isomorphic JavaScript application with AngularJS on the frontend, CORS requests are handled by the JavaScript server.