mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1454] All data is sent via OPTIONS when I use simple authentication on localhost #470
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#470
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?
Originally created by @MassiveBox on GitHub (Jan 30, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1454
Describe the bug
When using Basic Auth on localhost, instead of using POST, GET, PUT, or any request type I set on Hoppscotch, my server receives a OPTIONS call.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If I set as method GET, I'm supposed to see GET in the server logs. I've tried with ARC, and it works, so it's not a server-side problem.
Screenshots

Desktop (please complete the following information):
@liyasthomas commented on GitHub (Jan 30, 2021):
This looks like a pre-flight request scenario.
Refer:
@liyasthomas commented on GitHub (Jan 31, 2021):
Feel free to re-open this issue if it's not a pre-flight request.
@lostpebble commented on GitHub (Feb 17, 2021):
I'm getting the same, just want to make a simple GET request to my localhost server- but Hoppscotch always sends an OPTIONS request instead. Is there no way to prevent the OPTIONS request?
Edit: Nevermind, I see there is a GET request getting sent first- which errors because of CORS. Then the OPTIONS request is made.
@liyasthomas commented on GitHub (Feb 17, 2021):
Yeah, that's a pre-flight request.
https://github.com/hoppscotch/hoppscotch/issues/1454#issuecomment-770245079