Skip to content
Back

CORS policy issue

  • 0
  • Web
Alex Bourg
24 Sep, 2024, 14:05

Hi, I am having an issue with CORS, it's working sometimes, but not always. I already setup a web app with "*" hostname as shown on the screenshots. please advice

TypeScript
Access to fetch at 'https://cms.itexpertnow.com/v1/account' from origin 'https://adminhub.cyberitex.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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 resource with CORS disabled.
TL;DR
Issue with CORS policy when fetching data from 'https://cms.itexpertnow.com/v1/account' on 'https://adminhub.cyberitex.com'. No 'Access-Control-Allow-Origin' header present on the requested resource. Solution: Add the 'Access-Control-Allow-Origin' header to the response.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more