As the title says, I've deployed my page to https://dailymatchup.com and changed the WebSDK URL in my Appwrite instance, but it's still telling me
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://appwrite.mydomain.com/v1/account/sessions/email. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://localhost’).
why this do this
did you add a web platform in your project for this hostname? https://appwrite.io/docs/getting-started-for-web#addPlatform
yes
I added dailymatchup.com
, tried *.dailymatchup.com
and dailymatchup.com*
too, and it just says the CORS is localhost?
this is on 1.3.8
it should jsut be dailymatchup.com
btw, you're using the wrong sdk version for 1.3.8. you should be using 11.0.1: https://github.com/appwrite/sdk-for-web/tree/11.0.1
it's the one installed by yarn install appwrite
but
upgraded that
that will always install the newest package...but the newest package is for appwrite 1.4. you need to install an older version
okay so I installed yarn add appwrite@11.0.1
have you redeployed?
and updated this?
yes
and yes
one sec
Okay so my build script was runnin and my deploy script was running at the same time, therefore deploying my previous build, thank you for your help Steven!
[SOLVED] Reason: CORS header ‘Access-Control-Allow-Origin’ does not match
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...