10000 Login with O365 credentials not possible due to CORS request · Issue #2730 · microsoft/o365-moodle · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login with O365 credentials not possible due to CORS request #2730

Open
cali-git opened this issue Dec 11, 2024 · 0 comments
Open

Login with O365 credentials not possible due to CORS request #2730

cali-git opened this issue Dec 11, 2024 · 0 comments

Comments

@cali-git
Copy link

Hello,

I have a problem with the SSO login. When I click the button "Login with Microsoft 365", the sso_start.php page shows up, but nothing else happens.
After further inspection I noticed, that the files neccessary for the login are requested by using crossorigin="anonymous".
Example:
echo "<script src="https://statics.teams.microsoft.com/sdk/v1.9.0/js/MicrosoftTeams.min.js\" crossorigin="anonymous"></script>";
echo "<script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.17/js/adal.min.js\" crossorigin="anonymous"></script>";

This is the case for sso_start.php, sso_end.php, teams_tab.php.
However, the external servers do not reply with a Access-Control-Allow-Origin header. Therefore the files should not be requested by using a CORS statement. By not using the CORS statement, the file request inside the <script> would be considered as Same-Origin-Policy exception.

Am I doing something wrong here or can you fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0