Skip to content
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

Redirect on button click to /admin instead of custom port #85

Open
mStirner opened this issue Apr 12, 2023 · 3 comments
Open

Redirect on button click to /admin instead of custom port #85

mStirner opened this issue Apr 12, 2023 · 3 comments

Comments

@mStirner
Copy link
Member

No description provided.

@mStirner
Copy link
Member Author

mStirner commented Aug 8, 2023

A quick test with a adjusted config, did not work.

Every time http://127.0.0.1:3000/admin is hit, the user ui is loaded instead of the admin ui.

Which is crazy because, the request is done without any html injection (e.g. vite client) which would intercept the request.

Furthermore requests to /api & /auth works like expected

@mStirner
Copy link
Member Author

mStirner commented Jan 6, 2024

vitejs/vite#2808

@mStirner
Copy link
Member Author

mStirner commented Feb 8, 2024

For a click on /admin, a redirect to the custom port could be done: https://github.com/http-party/node-http-proxy#options (e.g. http://127.0.0.1:3000/admin, 307 -> http://127.0.0.1:3001)
But: This could break every request that is done to /admin e.g. for WebSockets, Vite/Vue HMR (Hot reloading) or so.
For every other HTTP API request, this should be ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant