In terms of security, what does ASP.NET Core use to protect against cross-site request forgery (CSRF) attacks?
- Session cookies
- Antiforgery tokens
- Basic authentication
- SSL certificates
ASP.NET Core uses antiforgery tokens to protect against cross-site request forgery (CSRF) attacks. These tokens are generated and validated to ensure that a request originates from a trusted source. Session cookies, basic authentication, and SSL certificates address other security concerns but are not specific safeguards against CSRF attacks.
Loading...
Related Quiz
- What is the primary purpose of the DbContext class in Entity Framework Core?
- While working on an MVC project, you realize the need to pass both the product details and a list of related reviews to a view. How might you best structure your data to achieve this?
- You are building a multi-language website, and based on the user's preference, you want to render a view in their chosen language. How can you dynamically choose a Razor view based on runtime conditions?
- After writing your ASP.NET Core application code, you want to build and run your application using a command-line tool. Which tool would you use for this purpose?
- To ensure a column is always populated in the database but its value is automatically generated on insert or update, you should configure it as a _________ property.