Skip to content

Allow redirect from teams meetings app to work with SameSite=Lax cookie#3229

Open
weilai-irl wants to merge 1 commit into
wip-130956-m501from
wip-131950-m501
Open

Allow redirect from teams meetings app to work with SameSite=Lax cookie#3229
weilai-irl wants to merge 1 commit into
wip-130956-m501from
wip-131950-m501

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 15:10
@weilai-irl weilai-irl self-assigned this Jun 12, 2026
@weilai-irl weilai-irl added this to the 2026-03 milestone Jun 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Tiny Teams Meeting plugin’s result.php endpoint to support a “cross-site repost” flow intended to work around browsers withholding session cookies on cross-site POSTs when cookies are SameSite=Lax.

Changes:

  • Adds a repost-handshake branch before require_login() to re-POST data from a same-site context.
  • Attempts to render an auto-submit repost page for unauthenticated (cookie-missing) requests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +35 to +43
$PAGE->set_context(context_system::instance());
$PAGE->set_pagelayout('popup');
header_remove('Set-Cookie');
$output = $PAGE->get_renderer('mod_lti');
$page = new \mod_lti\output\repost_crosssite_page($_SERVER['REQUEST_URI'], $_POST);
echo $output->header();
echo $output->render($page);
echo $output->footer();
exit;
Comment on lines +34 to +35
} elseif (!isloggedin()) {
$PAGE->set_context(context_system::instance());
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

Successfully merging this pull request may close these issues.

2 participants