- Posts: 26
Joomdle 2.x Installation
An Error when user logs in Joomla site
- saeid
- Topic Author
- Offline
- Junior Member
-
Less
More
3 years 4 months ago #1
by saeid
An Error when user logs in Joomla site was created by saeid
Hello, I installed Joomdle both in my Joomla site and Moodle. All things in system check in Joomla site is ok. but when I login to Joomla site it gives this error: Ajax request failed.
And in browser console this error:
Access to XMLHttpRequest at ' lms.myjoomlasite.com/auth/joomdle/land.p...te_user=0&wantsurl=/ ' (redirected from ' www.myjoomlasite.com/ ') from origin ' www.myjoomlasite.com ' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
I installed the Moodle in subdomain of Joomla site, like this:
Joomla site: www.myjoomlasite.com
Moodle: lms.myjoomlasite.com
Screenshot: filebin.net/d3dczcf96iyzms61/Joomdle__System_check.png
And in browser console this error:
Access to XMLHttpRequest at ' lms.myjoomlasite.com/auth/joomdle/land.p...te_user=0&wantsurl=/ ' (redirected from ' www.myjoomlasite.com/ ') from origin ' www.myjoomlasite.com ' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
I installed the Moodle in subdomain of Joomla site, like this:
Joomla site: www.myjoomlasite.com
Moodle: lms.myjoomlasite.com
Screenshot: filebin.net/d3dczcf96iyzms61/Joomdle__System_check.png
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
3 years 4 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic An Error when user logs in Joomla site
Hi.
I have never seen that message.... you can try changing the redirect-less SSO option in Joomdle config in Joomla, to see if that helps.
I have never seen that message.... you can try changing the redirect-less SSO option in Joomdle config in Joomla, to see if that helps.
Please Log in or Create an account to join the conversation.
- saeid
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
3 years 4 months ago #3
by saeid
Replied by saeid on topic An Error when user logs in Joomla site
Hi.
When I set redirect-less SSO option to yes, user logs in to Joomla site without error but he doesn't login in to Moodle.
When I set redirect-less SSO option to yes, user logs in to Joomla site without error but he doesn't login in to Moodle.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
3 years 4 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic An Error when user logs in Joomla site
Sorry, I didn't notice that you are running Joomla and Moodle on different domains. Redirect-less SSO won't work across multiple domains due to security restrictions.
If that is possible, you can change your Moodle to be at yourjoomlasite.com/lms instead of using a subdomain.
As for the CORS errors with normal redirect based SSO: I don't know why this happens at your site, as nobody has reported something similar before...
If that is possible, you can change your Moodle to be at yourjoomlasite.com/lms instead of using a subdomain.
As for the CORS errors with normal redirect based SSO: I don't know why this happens at your site, as nobody has reported something similar before...
Please Log in or Create an account to join the conversation.