skip to Main Content

Reactjs – I can't acces my data when I deploy in vercel api. It shows only cors problem – how to solve this?

:5173/watches:1 Access to fetch at 'https://watch-websites-server-site-mr3f7mg2v-md-sabbir-khans-projects.vercel.app/watches' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the…

VIEW QUESTION
Back To Top
Search