Rank 3: Container
Hello,
Using mostly all of the code, besides the UI from https://github.com/Meldiron/appwrite-ssr-svelte-kit/tree/main to get SSR working in a demo project i'm using to learn how it all works.
I have it working on the server side but not sure what i'm doing wrong, the client side is not getting the account. I'm trying to learn here so don't make me feel stupid. lol!
Cookies are being set and I can see them in the browser. I am thinking the following code is where i'm messing up.
I am using localhost Svelte and my Appwrite server is hosted.
export const AppwriteHostname: string = 'appwrite.hinrgdjs.com';
export const AppwriteEndpoint = import.meta.env.VITE_APP_ENDPOINT.toString();export const AppwriteProject = import.meta.env.VITE_APP_PROJECT.toString();```
When I click ``Create Anyomous Account`` as expected the account gets created in my project and the cookies are set.(see pic)
when trying to fetch the account or delete the session, i get the 401 error:
```Request URL:https://appwrite.hinrgdjs.com/v1/accountRequest Method:GETStatus Code:401Remote Address:159.203.112.158:443Referrer Policy:strict-origin-when-cross-origin```
```Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-SDK-GraphQL, X-Appwrite-ID, X-Appwrite-Timestamp, Content-Range, Range, Cache-Control, Expires, PragmaAccess-Control-Allow-Methods:GET, POST, PUT, PATCH, DELETEAccess-Control-Allow-Origin:http://localhost:5174