For developers will see the problem when API endpoint did not config with Cross origin, to it is gonna error while doing request to those endpoints.
Here is the solution:
-
On Linux:
google-chrome --disable-web-security --user-data-dir="~"
-
On Windows:
- Right click on desktop, add new shortcut
- Add the target as “[PATH_TO_CHROME]\chrome.exe” —disable-web-security —disable-gpu —user-data-dir=~/chromeTemp
- Click OK.