mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3354] [MERGED] fix: authorisation headers not being sent along with subscriptions when using graphql #4353
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3354
Author: @joeljstephen
Created: 9/14/2023
Status: ✅ Merged
Merged: 9/28/2023
Merged by: @AndrewBastin
Base:
release/2023.8.2← Head:fix/send-auth-headers-graphql📝 Commits (4)
9666470fix: send auth headers to the payload273e0ebrefactor: alert user that headers are sent to connection_initd62b406refactor: send headers only when headers are populated5829ac2chore: cleanup code📊 Changes
3 files changed (+11 additions, -3 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+1 -0)📝
packages/hoppscotch-common/src/components/graphql/RequestOptions.vue(+3 -0)📝
packages/hoppscotch-common/src/helpers/graphql/connection.ts(+7 -3)📄 Description
Ticket
Closes HFE-210
Description
This PR aims to fix the issue where authorisation headers are not being sent when a subscription is invoked using GraphQL.
Since WebSocket connection do not support sending headers, the headers will be sent as part of the payload in ‘connection_init’
Objectives
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.