Welcome To Infinitbility!
Many time we get cors issue when we are developing a website. like below
Access to fetch at ’http://dummy.restapiexample.com/api/v1/create’ from origin ’http://localhost:300’ has been blocked by CORS policy: Request header field content‑type is not allowed by Access‑Control‑Allow‑Headers in preflight response.
I try many extensions, adding mode: cors, and added Access‑Control‑Allow‑Headers on the server but my issue not solved, then I try the “CORS” extension, and my cors issue resolve. below you will find the extension link and step to use on your machine.
below solution use only when you developing a website on your local machine. don’t use for production.
Download Extensions Link https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf
After add, the CORS extension activates your extension.
if you get help, please share a post on your social network