LTI shows login screen when inserting content from H5P.com

LTI shows login screen when inserting content from H5P.com

od Lê Hồng -
Število odgovorov: 2

I have seen a few similar issues in the below links but It doesn't help to solve my issue: 

https://moodle.org/mod/forum/discuss.php?d=421351

https://moodle.org/mod/forum/discuss.php?d=418339

I am integrating Moodle 3.10.3 and H5P.com via an external tool in Moodle. I have done all the steps required for configuring LTI in moodle 

When I try to insert H5P content, I am getting redirected to the Moodle login page.


The console return error as below


This issue happens on Chrome and Edge. It works fine on Firefox as expected.

Is there anyone who could help?

Povprečje ocenitev: -
V odgovor na Lê Hồng

Re: LTI shows login screen when inserting content from H5P.com

od Jake Dallimore -
Slika Core developers Slika Moodle HQ Slika Particularly helpful Moodlers Slika Peer reviewers Slika Plugin developers Slika Testers
Hi,

This is a fairly common report, most likely caused by the browser handling of samesite cookies. This was patched in MDL-71887, meaning you need to be running at least Moodle 3.10.6 or you'll hit the problem. Upgrade your site, and you'll likely find the problem goes away.

Hope that helps,
Jake
V odgovor na Jake Dallimore

Re: LTI shows login screen when inserting content from H5P.com

od Lê Hồng -
Many thanks, Jake, That's really helpful to me. I can fix my issue by getting fixed code to my current code.