Knowee
Questions
Features
Study Tools

18.Question 18What is the purpose of the HTTPOnly flag in a cookie?1 pointTo ensure that the cookie can only be accessed by the domain that created it.To prevent the cookie from being sent over an unencrypted connection.To prevent JavaScript code from accessing the cookie, which can help prevent cross-site scripting (XSS) attacks.To set an expiration date for the cookie.

Question

18.Question 18What is the purpose of the HTTPOnly flag in a cookie?1 pointTo ensure that the cookie can only be accessed by the domain that created it.To prevent the cookie from being sent over an unencrypted connection.To prevent JavaScript code from accessing the cookie, which can help prevent cross-site scripting (XSS) attacks.To set an expiration date for the cookie.

🧐 Not the exact question you are looking for?Go ask a question

Solution

The purpose of the HTTPOnly flag in a cookie is to prevent JavaScript code from accessing the cookie, which can help prevent cross-site scripting (XSS) attacks.

Similar Questions

.Question 18What is the purpose of the HTTPOnly flag in a cookie

What are cookies?1 分Pieces of code that store information about a websiteTypes of malware that can damage computersSmall files stored on computers that contain information about usersPrograms that enable users to access websites

Question 9What is the purpose of the Anti-Forgery Token in ASP.NET?1 pointTo prevent cross-site scripting (XSS) attacks.To encrypt sensitive data in web forms.To prevent Cross-Site Request Forgery (CSRF) attacks.To authenticate and authorize users for accessing resources in a web application.

Role of Cookies

What is the name of the HTTP response header used to send cookies to the client from the server?Cookie-SetterSet-CookieSend-Cookies

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.