To open Google Chrome on a Mac with CORS disabled, you must launch it via the Terminal using the --disable-web-security flag and a custom user data directory. This is a common practice for developers to test front-end code against local or remote APIs without setting up a proxy.
Web developers often encounter the dreaded CORS error when trying to fetch data from an API running on a different port or domain (e.g., a React app on localhost:3000 trying to hit a Node API on localhost:5000 ). Disabling CORS in the browser allows developers to test functionality before configuring proper server-side headers.
Save it to your folder.