Answer the question
In order to leave comments, you need to log in
How to get rid of CORS?
The server is running sailsjs on port 1337. The client part, separate from the backend, runs on a separate server to serve static files (html, css, js) and uses port 9000.
Result:
client - localhost:9000
server - localhost:1337
CORS errors occur when the client contacts the server.
Of course, you can give statics inside the sails application, but my client is written in coffee and less, I don’t really want to load it with build tasks.
PS When the client part is launched inside the phonegap application, the question disappears, but what about on the localhost? Is it a client and/or server issue?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question