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

[HELP] How to hide routes paths in production from being exposed to public #15099

Closed
phantom-combat-venue opened this issue Jan 23, 2025 · 2 comments

Comments

@phantom-combat-venue
Copy link

Describe the problem

How to hide compiled routes path in production from being exposed to public

source code:

Image

after build:

Image

this means can anyone open browser console F12 then CTRL+ALT+F and judt type "/login" will find all routes i used on my app and tables that i used in dashboard ?

there are any kind of obfuscation for this ?

Describe the proposed solution

obfuscation routes

Importance

i cannot use svelte without it

@Conduitry
Copy link
Member

There is not. The browser needs to have a route manifest in order to handle client-side navigation correctly. You should in general not be relying on security through obscurity for these sorts of things.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2025
@Thiagolino8
Copy link

There is not. The browser needs to have a route manifest in order to handle client-side navigation correctly. You should in general not be relying on security through obscurity for these sorts of things.

I guess there is
sveltejs/kit#13379

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

3 participants