TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Secure by Default Web Framework?

2 pointsby helltoneover 3 years ago
Are there any production-quality web frameworks that are secure "by default"? I'm an experienced software developer but completely new to web development. I just discovered csrf, xss, cors, etc which seem to be easy to fall into by mistake/inexperience and I really don't want to goof-out.

2 comments

smt88over 3 years ago
Frameworks can be secured as far as their internal implementations go, but they can&#x27;t stop you from exposing yourself to these vulnerabilities yourself. There&#x27;s no shortcut to this -- you need to study common attack vectors in web protocols and web browsers.<p>In general, you&#x27;re better off with popular, open-source frameworks that are still getting updates by a team of paid professionals (usually through corporate sponsorship). Strong, static types also help.<p>For a beginner, .NET 6 is a pretty good &quot;batteries included&quot; starting point that doesn&#x27;t require as much caution when importing third-party libraries (as opposed to Node&#x2F;npm).
ale_jacquesover 3 years ago
You can try some of them. It all depends on your language of chopice proficiency. There&#x27;s no such OOTB solution but some frameworks have good options. Django (Python), Laravel (PHP) and Spring Boot (Java) are some options. For enterprise level security (you&#x27;d still have to configure some of it by yourself) I would d go with Spring Boot and its Spring Security module (<a href="https:&#x2F;&#x2F;spring.io&#x2F;projects&#x2F;spring-security" rel="nofollow">https:&#x2F;&#x2F;spring.io&#x2F;projects&#x2F;spring-security</a>).