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
Summary
The user was facing an issue where the CORS header 'Access-Control-Allow-Origin' was not matching. The user realized that their build and deploy scripts were running simultaneously, resulting in the deployment of the previous build. The issue was resolved by installing an older version of the package 'appwrite' (v1.3.8) instead of the newest version. The user also made sure to add the correct hostname to the web platform in their project.
it's the one installed by yarn install appwrite but
ZachHandley
Moderator
Sep 8, 2023, 00:21
upgraded that
Drake
Sep 8, 2023, 00:25
that will always install the newest package...but the newest package is for appwrite 1.4. you need to install an older version
ZachHandley
Moderator
Sep 8, 2023, 00:27
okay so I installed yarn add appwrite@11.0.1
Drake
Sep 8, 2023, 00:33
have you redeployed?
Drake
Sep 8, 2023, 00:33
and updated this?
ZachHandley
Moderator
Sep 8, 2023, 00:43
yes
ZachHandley
Moderator
Sep 8, 2023, 00:43
and yes
ZachHandley
Moderator
Sep 8, 2023, 00:48
one sec
ZachHandley
Moderator
Sep 8, 2023, 01:56
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!
Drake
Sep 8, 2023, 02:21
[SOLVED] Reason: CORS header ‘Access-Control-Allow-Origin’ does not match