mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3927] [MERGED] chore: split axios request options into platform #4596
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#4596
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/3927
Author: @amk-dev
Created: 3/21/2024
Status: ✅ Merged
Merged: 3/22/2024
Merged by: @jamesgeorge007
Base:
release/2024.3.0← Head:fix/use-backend-headers📝 Commits (3)
7f91429fix: use getBackendHeaders from platform to add credentials for centralb1139acchore: split axios options to platform501aad3chore: cleanup📊 Changes
3 files changed (+21 additions, -3 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/teams/TeamsSearch.service.ts(+4 -3)📝
packages/hoppscotch-common/src/platform/auth.ts(+10 -0)📝
packages/hoppscotch-selfhost-web/src/platform/auth/auth.platform.ts(+7 -0)📄 Description
Changes
This PR introduces a new property
axiosPlatformConfigto auth platform definition. this allows us to pass different axios configs based on the platform.eg: Central uses Bearer Token to authenticate with the backend, while the SH uses Cookies, the configs for these can now belong in the respective platforms.
we already do this for our Gql Client, this PR adds the same for axios configs to be used for requests sent outside of the graphql client.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.