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

fix: prevent browser auth prompt after failed SSE requests #9654

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

JammingBen
Copy link
Collaborator

Description

The SSE request was missing the X-Requested-With: XMLHttpRequest header which caused the browser to display an auth prompt in case the request failed with a 401 status code.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

The SSE request was missing the `X-Requested-With: XMLHttpRequest` header which caused the browser to display an auth prompt in case the request failed with a `401` status code.
@JammingBen JammingBen self-assigned this Sep 5, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JammingBen JammingBen merged commit b1829e9 into master Sep 6, 2023
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix-sse-auth-popup-on-401 branch September 6, 2023 08:16
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.

Authentication Pop-up appears because /notifications/sse request uses expired bearer token
2 participants