#[SOLVED] Getting the CORS error despite adding * as hostname in platform in appwrite project

11 messages · Page 1 of 1 (latest)

fair iris
#

I'm getting the CORS policy error despite setting the endpoint to https://cloud.appwrite.io/v1. Please help. The error states "Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:5173/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

Edit - I have the platform wherin the hostname is set to *. My project ID and url in the .env.local file outside the src are correct. I'm importing them into the config.ts file and then exported from the appwriteConfig function . I'm still getting the same error..As you can see, the CORS error still persists. @topaz halo

topaz halo
fair iris
topaz halo
#

In the variable name

fair iris
# topaz halo

Oh damnn. I'm so sorry. This is such a silly mistake ! So sorry once again for not having noticed such a silly spelling error before reahing out to y'all

topaz halo
#

Tell me if that solves the issue

fair iris
topaz halo