Please tell me what am I doing wrong? When I log into the application, I receive a cookie without the secure flag, samesite: none, which is why a backup one is set. Nextjs website on the app.ru domain, appwrite on the appwrite.app.ru domain, https everywhere. (SDK Web)
Backup what? Are you on appwrite cloud?
appwrite hosting
You're self hosting? Do you have anything in front of Appwrite like a reverse proxy?
Self-hosting, I use nginx proxy manager to redirect from server:3000 to the https domain
Ummm is traffic from NPM to Appwrite https?
That's right, SSL certificates are installed everywhere
Soo Appwrite's https port is 3000?
appwrite on port 3000, if you go through server ip: 3000, then there is http.
Please make sure you're forwarding to the https port
Okay, thanks, I'll check it out. I'll try to start everything again now.
Good afternoon, you were right, it was an NPM issue, I changed the configuration and now there is a secure flag. Please also tell me why 2 cookies arrive, is this how it should be?
Yes this is correct. Legacy cookie is for legacy reasons. You can ignore it
Thank you!
[SOLVED] Cookie (login)
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...