The easy way is to just add the extension in google chrome to allow access using CORS.
Just enable this extension whenever you want allow access to no ‘access-control-allow-origin’ header request.
Or
In Windows, paste this command in run window:
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
This will open a new chrome browser which allow access to no ‘access-control-allow-origin’ header request.