-
Notifications
You must be signed in to change notification settings - Fork 174
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
Extend vaadin.devmode.hostsAllowed to not only IP adresses #21089
Comments
The current check is done against servlet request Here's a quote from Javadoc
We can potentially do some sort of reverse DNS lookup (e.g. |
Questions:
|
Note: I edited the previous comment because there was a typo. DevTools are enabled only in development mode and if Restriction in development mode is done to prevent access to other devices on the same network, when the application server is bound to public network interfaces. I hope this answers your questions. |
Do note that all hosts you allow to connect can make changes to the project files on your disk. Copilot uses the communications channel to update files, and the restriction is in place to avoid that anybody you share your development URL with can modify your code. |
First of all: vaadin.devmode.hostsAllowed=* works fine! Thanks (unfortunately just in application.properties, not in application.yaml , but I do not mind toooooo hard ;-)) And @Artur- I'll take the risk. |
Describe your motivation
Even in development we are using https and OIDC/Oauth2 so our url are neither "localhost" nor some IP adress. They look like this:
https://machinename.intern.company.de:8441
so Vaadin CoPilot and DevTools will not work...
vaadin.devmode.hostsAllowed= just accepts IP Adresse
Describe the solution you'd like
I'd expect to allow something like this:
vaadin.devmode.hostsAllowed=https://machinename.intern.company.de:8441
or
vaadin.devmode.hostsAllowed=*.company.de
or whatever so that the logical urls can make use of the vaadin def tools aswell.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: