You "solve" the CORS error by either adding the appropriate
Cross-Origin Resource Sharing[
^] headers to the remote site that you're trying to access, or changing your code so that it doesn't try to access resources on a different site.
Trying to change your browser settings to circumvent a legitimate security restriction is not an option.
Since you haven't provided any details of what you're trying to do, what the problem is, what you have tried, or where you are stuck, we can't tell you any more than that.