If you ever worked with an AJAX call, you are probably familiar with the following error displayed in browser console:
Failed to load https://example.com/: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://anfo.pl' is therefore not allowed access. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
⏱ 5 minutes read
#CORS #browsers
Failed to load https://example.com/: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://anfo.pl' is therefore not allowed access. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
⏱ 5 minutes read
#CORS #browsers
Medium
Understanding CORS
If you ever worked with an AJAX call, you are probably familiar with the following error displayed in browser console: