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.
Thanks for reading…
Join our email list and get notified about new content
No worries, I respect your privacy and I will never abuse your email.
Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.