Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

🐛 [BUG] - Experiments not loading in Safari #1040

Closed jaburgoyne closed 4 months ago

jaburgoyne commented 4 months ago

Description

Although Firefox and Chrome seem to be OK, all experiments are failing in Safari (including all iOS devices) with the message 'An error occurred while loading the data, please try to reload the page. (Error: next_round_data unavailable)

Screenshots

image

Reproduction URL

https://app.amsterdammusiclab.nl/thats_my_song

Reproduction steps

1. Go to any of our experiments using the Safari browser.

Logs

No response

Browsers

Safari

OS

No response

Additional context

No response

drikusroor commented 4 months ago

Closing this as:

The API url configured for the frontend was still pointing to the old temporary domain of illc-aml-mu-pr.science.uva.nl. This URL still works and also points to the same backend. The frontend/browser, approached with app.amsterdammusiclab.nl then makes requests to illc-aml-mu-pr.science.uva.nl. Chrome/Firefox apparently allow this, maybe because they share the same IP and are connected through DNS, but Safari doesn't and subsequently refuses to set the CSRF cookie, resulting in many requests (that depend on getting the participant from the DB) failing.

So, my Safari was also having issues with S2S. But now, after updating the API url to app.amsterdammusiclab.nl/server for the frontend, it seems to work as it should.