Skip to content

Is it insecure to include my login page in nuxt application? #9052

Discussion options

You must be logged in to vote

@arai03 As a matter of best practice, you should assume that everything in your webpack bundle is public. Secrets or sensitive URLs should not be embedded in your webpack code. The right approach, however, depends a lot on your threat model and use cases. An option to consider is using a serverless API (or server endpoint) to guard access to your secrets (for example, to proxy access to a payment provider or an email service).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Atinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants
Converted from issue

This discussion was converted from issue #9051 on March 25, 2021 15:29.