microsoft / microsoft/MicrosoftEdge-Extensions

Extension making AJAX requests doesn't get authentication cookies appended

Open
#35 8 comments 0 reactions 1 assignee View on GitHub

@Rahul-Bauri is already working on this.

Since Sep 25, 2025.

Bug Tracked
Dominant language
JavaScript
Stars
245
Forks
149
PR merge metrics
No merged PRs in 30d

Description

On edge, when a user is logged in to his identity provider (Azure AD), an ajax request to the IDP URL from an extension gets rejected as if the user is not logged in.
Making the same request from a webpage, works as expected.
To my understanding, it has something to do with the PRT mechanism.
If Edge wouldn't wrap the identification by itself, making requests to the IDP from the extension would just work - because it is based on cookies.
But when Edge is managing the process - the cookies are not saved to the domain. Instead, they are appended to each network request created by the web page.
Why isn't the same mechanism apply for requests created by the Extension? Can we get ajax requests to the IDP work?
We need a way to get "inside" the PRT mechanism

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.