5 ms·
Phonegap seems to be a nice idea. But how do you implement CORS for such app ?
by okpatil 13y ago
Phonegap seems to be a nice idea. But how do you implement CORS for such app ?
- benologist 13y agoDo you need to? It's not website-to-website communication. If you do need to it's very simple, your web server has to include some extra headers: "Access-Control-Allow-Origin", "*" "Access-Control-Allow-Methods", "GET,POST" // etc "Access-Control-Allow-Headers", "X-Requested-With,Content-Type"
- okpatil 13y agoIt seems that I need to. When I don't, it gives "Origin null is not allowed by Access-Control-Allow-Origin" error.