Disable CORS in a better way
Disable CORS for specific Web Pages and for specific Requests.
Define which requests your want to disable the CORS allowing sensitive requests (security most of them) intact.
You can run Webpack (which requires ws with enabled cors) and disable CORS for your API.