chore(devserver): set server authority to localhost #364
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #363
Noticed this one while looking into https://github.com/cryostatio/cryostat/issues/802 . When running the backend with a typical
CRYOSTAT_CORS_ORIGIN=http://localhost:9000 CRYOSTAT_DISABLE_SSL=true CRYOSTAT_DISABLE_JMX_AUTH=true sh smoketest.sh
, JWT token download requests fail because the URL of the requested resource was still usinghttp://0.0.0.0:8181
, but the server is listening on and expecting requests to usehttp://localhost:8181
in this setup. To test, just try to download an event template using a devserver web client. Without this change it fails with an error about the request resourceUrl being invalid. With this change it should succeed.This can also be worked around by setting the
CRYOSTAT_WEB_HOST
env var when starting the backend - setting it back to the old0.0.0.0
to override the defaultlocalhost
read out of thepom.xml
sets it back to how it used to work, when.env
was created.