LMSouq
moodle-core Open

HTML5 CORS request fails in safari after redirect

DO
Do Not Track Me
1 month ago
3 views
Problem Description
I am crafting a CORS request with jQuery to accomplish a SSO type system. User logs into wordpress and with a hook at the same time also logs into Moodle. The problem I'm having is that in Safari (and only safari ~7+) when the inital POST request is set to moodlesite.com/login/index.php there is a redirect to: moodlesite.com/login/index.php?testsession=user_id. When this redirect occurs Safari drops the applicable CORS headers and then the request to the redirected URL fails.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base