Skip to content

New lesson: Third-party Cookies #29629

@mao-sz

Description

@mao-sz

Lesson: Third-party Cookies

Lesson overview

Lesson about third-party (cross-site) cookies, restrictions, and how to utilise them for auth with cross-site deployments.

Lesson outline

The following items define the scope of the lesson. The lesson outline is flexible; you can improve, expand, and omit items whilst writing lesson content (make sure the pull request description mentions that).

  • Discussion of third-party cookie restrictions/phase out and how that relates to cross-site deployments.
    • May involve discussion of how different browsers restrict such cookies.
  • Discussion of relevant approaches to allow for the use of cookies for authentication for cross-site deployments.
    • Focus on sessions as the curriculum recommendation going forward, but can mention JWTs as well since the principle is the same.
    • Discuss how same-site cookies can be used if both ends are on the same domain.
    • Instruct how to use rewrite rules in hosts like Netlify or Vercel as reverse proxies, so the main client ends up making same-origin requests and has same-site cookies set.

Acceptance criteria

If the requirements here are not met, the work effort is not complete.

  • Lesson conforms to the outline above (unless outline has been modified).
  • Lesson follows our Layout Style Guide.

Additional information

This is part of the ongoing Node revamp and so is open to the revamp team.

Get the lesson template

Download the lesson template using the following command (replace lesson_name with the actual lesson name):

curl -o <lesson_name>.md https://raw.githubusercontent.com/TheOdinProject/curriculum/main/templates/lesson-template.md 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Project Node RevampIssues/PRs related to the Node Revamp projectStatus: StaleThis issue/PR has been inactive for over 30 days and will be closed if inactivity continues

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions