-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ Depending on where you live, you may have come across cookie consent banners whe | |
|
||
The exact requirements depend on the regulations for the region (if any). In the case of EU GDPR for example, restrictions apply only to cookies that are not deemed "strictly necessary" to the website's function. A cookie used solely to keep someone logged into a website is an example of a strictly necessary cookie and so will not require user consent. Cookies used as part of user data collection, such as with Google analytics, are not strictly necessary and so would require user consent alongside clear explanations of what data will be collected and how they'd be used. Such users should also be allowed to withdraw consent and opt out of those cookies. | ||
|
||
In this course, we will only be demonstrating the use of cookies for authentication purposes (strictly neccessary). Nonetheless, it's good to be generally aware of such regulations around cookies should you ever wish to use them for other purposes. | ||
In this course, we will only be demonstrating the use of cookies for authentication purposes ("strictly neccessary"). Nonetheless, it's good to be generally aware of such regulations around cookies should you ever wish to use them for other purposes. | ||
|
||
### Assignment | ||
|
||
|
@@ -63,10 +63,9 @@ In this course, we will only be demonstrating the use of cookies for authenticat | |
|
||
The following questions are an opportunity to reflect on key topics in this lesson. If you can't answer a question, click on it to review the material, but keep in mind you are not expected to memorize or master this knowledge. | ||
|
||
- [What are cookies?](#introduction) | ||
- [What are cookies?](#introduction) | ||
- [Why might you need to set an expiry date on a cookie?](#expiresmaxage) | ||
- [How can you prevent cookies from being read via client-side JavaScript, and why might you want to prevent that?](#httponly) | ||
- [Why might you want to prevent client-side JavaScript from accessing a cookie and how would you implement this?](#httponly) | ||
Check failure on line 68 in nodeJS/authentication/cookies.md GitHub Actions / Lint lesson filesLinks have descriptive text labels
|
||
- [What does the "Secure" attribute do to a cookie?](#secure) | ||
- [Under some regulations, what kinds of cookies would require user consent before they can be used?](#regulations-and-cookie-consent) | ||
|
||
|