About Cors Between Mobile Application And Web Application
I encountered CORS error that when I fetch api from my web application. Oddly, that problem not occurred when I fetch that same API with POSTMAN and Mobile App (iOs & Android).
Solution 1:
CORS is a security measure designed to prevent web pages from making requests to domains OTHER THAN THE DOMAIN THE PAGE WAS RECEIVED FROM (unless the server says it's ok).
Postman does not load a web page from one source and make API requests to another source. CORS does not make sense here. The same goes for mobile apps. No webpage loaded from one source and trying to make requests to another source.
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
Post a Comment for "About Cors Between Mobile Application And Web Application"