-
Notifications
You must be signed in to change notification settings - Fork 107
Colors theme fixes #2186
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
Colors theme fixes #2186
Conversation
cshagen
commented
Feb 2, 2025
- Korrektur mittlerer Graph
- Korrektur Zeit-Format
| server: { | ||
| allowedHosts: true, | ||
| }, |
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.
Abgesehen davon, dass die Einrückung nicht passt: warum ist diese Einstellung erforderlich? Ich sehe keine Grund.
Laut Doku wird dringend davon abgeraten. https://vite.dev/config/server-options#server-allowedhosts
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.
Ohne das bekomme ich mit der aktuellen Vita-Version diese Fehlermeldung im Browser, wenn das Theme lokal starte:
Blocked request. This host ("openwb-dev") is not allowed.
To allow this host, add "openwb-dev" to `server.allowedHosts` in vite.config.js.
Es hilft aber nicht, wenn ich meinen internen Hostnamen auf Github poste, ausserdem kann der ja auch mal ändern. Die Config sollte ja auch nur dann greifen, wenn das Colors-Theme lokal mit "npm run dev" gestartet wird. Es sollte daher für den normalen Betrieb keinen Sicherheitsabstand-Impact geben.
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.
Der Zugriff per IP reicht Dir nicht?
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.
Danke für den Tipp. IP-Adresse funktioniert. Ich habe die server.allowedHosts-Config wieder rausgenommen.