ubc / threadz

Threadz is a discussion visualization tool that adds real-time graphs and statistics into online discussions.
0 stars 0 forks source link

Cross-site cookies and Canvas test environment #3

Open jlongland opened 2 weeks ago

jlongland commented 2 weeks ago

Canvas uses a client.test.instructure.com domain for their test environment. Threadz is unable to set a session cookie due to samesite cookie handling in many browsers.

At the time of creating this issue, Firefox 130 can be used to test Threadz in a Canvas test environment.

justin0022 commented 2 weeks ago

Chrome/Safari did not work for us. In test, the required cookies could not be set in Chrome due to the following error (found in the network tab). Under the application tab in Chrome devtools, we saw that no cookies were being set in test, but being properly set in prod.

Screenshot 2024-10-02 at 3 57 33 PM
craigdsthompson commented 2 weeks ago

URLs for production (same site): Threadz: threadz.learninganalytics.ubc.ca LMS: canvas.ubc.ca

URLs for testing (not same site): Threadz: threadzverf.learninganalytics.ubc.ca LMS: ubc.test.instructure.com