LTI shows login screen when inserting content from H5P.com

LTI shows login screen when inserting content from H5P.com

by Lê Hồng -
Number of replies: 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?

Average of ratings: -
In reply to Lê Hồng

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

by Jake Dallimore -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of 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
In reply to Jake Dallimore

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

by 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.