mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3410] [bug]: nginx, cors and axios errors #1142
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#1142
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 @daemon-byte on GitHub (Oct 1, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3410
Is there an existing issue for this?
Current behavior
I setup a basic hoppscotch on my server. I used nginx as a reverse proxy and subdomains for admin and backend. Hoppscotch opens and seems to work however the browser console is filled with errors and I can't register etc. The first issue I hit was no cors headers being set so I manually made them via nginx. However I am now getting a cors issue because the options request is getting a 405 from the graphql url. I'm at a loss now as to how to proceed as there's no errors in the docker compose logs and I can't find anything on backend. If anyone knows where I can look to track down some information on this that would be great.
Steps to reproduce
Setup the 3 images behind an nginx proxy.
Set the cors headers with nginx.
open the tool and check the browser console.
Environment
Production
Version
Self-hosted
@daemon-byte commented on GitHub (Oct 1, 2023):
@owlpro commented on GitHub (Oct 8, 2023):
@daemon-byte hi check out this config for backend proxy pass
@daemon-byte commented on GitHub (Oct 9, 2023):
Thanks for that but it didn't alter anything. I think for some reason it might be ignoring my env file. I noticed this in the logs which is surely wrong? Those origins were not in the env file.