How do I fix the CORS problem?
There was a problem with CORS headers.
The essence of the problem. Three requests to the same server. All three requests respond to OPTIONS with the same cors headers. One of the requests crashes with a browser error due to the lack of cors headers, although they are present in the next OPTIONS request for the same route in the browser.
If you need add. information - in the comments.
Add the following directive to htaccess:
Header set Access-Control-Allow-Origin '*'Anonymous
To place the code, please use CodePen or similar tool. Thanks you!