-
Notifications
You must be signed in to change notification settings - Fork 51
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
"Secure" content is directly accessible #3
Comments
That's a good point, but the "public" directory contains all the assets for the web application. The secure page will be secure if you follow the tutorial steps. |
Can you please point to the tutorial in which this is done? I believe auth.js is missing from the code, but I am not sure if this is why secure.html is directly accessible. |
Here's the complete dev guide for "build a basic app": Specifically, this tutorial in that guide shows what you need to do: |
Thanks for pointing that out @gstroup. |
I think this makes sense. I'll update the app, so that secure.html will be in a secure/ directory parallel to the public/ directory. Thanks! |
Few more points here:
Lastly, apologies for stretching this issue this far, but just wanted to share my inputs while using this app structure so that others can benefit from it. |
Thanks for all your comments! I'm glad you're taking the time to understand the application. Here are some responses to your points.
Watch for some updates coming soon to this application. I'm sorry, we left some confusing code in there, and we'll be cleaning it up soon. Thanks for all the feedback! |
secure.html
lives in thepublic
folder.It is therefore possible to access directly via
http://localhost:3000/secure.html
.Consider moving
secure.html
to aprivate
folder outside thepublic
folder to illustrate gating?The text was updated successfully, but these errors were encountered: