Okey, sorry if this is an stupid question, i am a still student. I am studying as ans Software Engineer and i am making research project for my school. I've decided to díve deeper on React:JS and Blazor technologies.
The main research is here about security points and how these technologies handle security. I know that when we are using api frontend applications they are merely similar, but theres some things what i wanted to make sure (still student).
In my opinion C technologies has better security thanks to class models, even Blazor being frontend mainly it has classes and i have this understanding that its more secure way to keep data in client session than cookies or contextAPI, not even question localstorage of sessionstorage.
React doesnt have any class model options.
If we are implementing higly secure REST API entity does these questions apply?
Thanks for advance and sorry for the possible stupid question.
Loading
Manav PandyaPosted Jul 15, 2025, 2:07 PM
You're right to explore this; both React and Blazor handle security differently.
Blazor (especially Server) benefits from NET’s type safety and can reduce exposure by keeping logic on the server.
React relies on frontend JS, so security depends more on API design, token handling, and best practices like avoiding localStorage for sensitive data.
Harriet ArmstrongPosted Jul 9, 2025, 10:51 PM
Thanks for this topic. Last year, I struggled to secure my own project’s frontend — it taught me how small mistakes can open big risks. It’s like students who trust Affordable Assignments for PGCE assignment service when they feel stuck sometimes we all need a little expert help to keep things safe and strong!
Jack BaqirPosted Jul 9, 2025, 12:39 PM
Frontend code is exposed to users, so never store secrets in it. Prevent XSS by sanitizing inputs and CSRF with tokens and SameSite cookies. Always use HTTPS, handle authentication on the backend, and store tokens securely. Keep dependencies updated and use CSP headers to block malicious scripts.
Jack AbroyPosted Jul 7, 2025, 10:18 AM
Frontend alone is not secure always validate on the backend too.
Mahesh ChandPosted Jul 2, 2025, 12:59 PM
This is actually a great question, and many developers fail to understand or prioritize software security. That is one of the reasons many software websites get hacked. We must think security first software and YES, front-end code is the reason of 70% hacks. YES backend code that runs on the server is more secure than the code that runs in the browser (in general) but it doesn't mean you can't build secure front ends and otherwise. Security is also important on the backend API, Web Server, and Database levels.
Here is a detailed article I wrote on this topic. Read it and let me know what you think:
10 Must Tips to Build Secure Websites for Software Developers
Performance is another topic and I wrote a detailed article on this:
Top 10 Tips For Building High Performance Websites
Jack AbroyPosted Jul 2, 2025, 11:01 AM
Frontend technologies (like HTML, CSS, JavaScript) can be vulnerable to:
XSS (Cross-Site Scripting)
CSRF (Cross-Site Request Forgery)
Clickjacking
Data leaks through APIs
Jack QasimPosted Jun 30, 2025, 6:27 AM
Being good at making money can make you poorer if you overspend chase status, or neglect saving and investing wisely.
FarshaWarshaPosted Dec 3, 2024, 6:00 PM
Frontend technologies rely on secure coding practices to mitigate risks like XSS, CSRF, and data exposure. Best practices include validating inputs, sanitizing outputs, using HTTPS, implementing Content Security Policies (CSP), and avoiding exposing sensitive logic or secrets in the client-side code.
Jayraj ChhayaPosted Dec 2, 2024, 6:07 AM
Hi Jani,
When evaluating the security of frontend technologies like React.js and Blazor, it's essential to consider their architectural differences and how they handle data. Blazor, being a component-based framework that utilizes C#, indeed offers a class model that can enhance data encapsulation and security. This structure allows for better management of state and data integrity, potentially reducing vulnerabilities associated with client-side storage methods like cookies or local storage.
On the other hand, React.js, while lacking a formal class model, employs functional components and hooks that can also be secured effectively. Security in React primarily hinges on best practices such as sanitizing inputs, using HTTPS, and implementing proper authentication and authorization mechanisms.
When implementing a highly secure REST API, both frameworks can be configured to adhere to security best practices. The choice between them should be guided by the specific requirements of your project, including the complexity of the application, the team's familiarity with the technology, and the security measures you plan to implement. Ultimately, both technologies can be secure if used correctly, but they require different approaches to achieve that security.