-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure dev ui only loads on localhost #40979
Conversation
extensions/vertx-http/runtime/src/main/java/io/quarkus/devui/runtime/DevUICORSFilter.java
Outdated
Show resolved
Hide resolved
extensions/vertx-http/runtime/src/main/java/io/quarkus/devui/runtime/DevUICORSFilter.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
2809dd9
to
5c8f1f0
Compare
extensions/vertx-http/runtime/src/main/java/io/quarkus/devui/runtime/LocalHostOnlyFilter.java
Show resolved
Hide resolved
private static final Logger LOG = Logger.getLogger(LocalHostOnlyFilter.class); | ||
|
||
private static final String LOCAL_HOST = "localhost"; | ||
private static final String LOCAL_HOST_IP = "127.0.0.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to support IPv6 (::1
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't help feel like we are somehow circumventing or not utilizing the right cors setup if we have to do these tricks? how come this is not caught by normal cors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really CORS. It's allowed hosts. In the case if fails the origin header is null, so CORS can not work
This comment has been minimized.
This comment has been minimized.
5c8f1f0
to
8966a33
Compare
Signed-off-by: Phillip Kruger <[email protected]>
8966a33
to
16ad783
Compare
Status for workflow
|
Hello @phillip-kruger Thanks for this improvement ! I tried with *.domain , %.domain with no success. Thanks ! |
@phillip-kruger, can you look at @slallemand's request? |
@slallemand - so you want to be able to pass in a regex and if it match we should allow ? Will that work ? |
@phillip-kruger exactly ! |
Fix #40828