introlab / opentera-webportal-service

Portal for users / participants
Apache License 2.0
2 stars 0 forks source link

Redirection to Moodle not working properly on Safari #12

Open SBriere opened 2 years ago

SBriere commented 2 years ago

Redirection to Moodle with an access token isn't properly working on Safari, showing the Moodle login page instead.

SBriere commented 2 years ago

This is due to a "feature" in Safari in which iFrame can't set cookies for other sites. A temporary workaround is to "Enable multidomains cookies" in Safari preferences. This issue will resolve itself if (when) Moodle is hosted on the same site as the portal. Otherwise, a user prompt might be required to allow storage access (to be implemented, requiring some refactoring).