Questions:
What are the advantages of storing tokens in “Cookies” vs “Local Storage”
Cookies are meant to be read server-side, while Local Storage can only be read by the client-side. Cookies also provide more security because - when used with the HttpOnly cookie flag, they are not accessible through JS and are immune to XSS.
Sources: https://medium.com/datadriveninvestor/cookies-vs-local-storage-2f3732c7d977 https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage
Explain 3rd party cookies
Cookies that are set by - and/or tracked by - a website other than the one you are currently on. This is most often associated with advertisement, marketing, and social media.
Source: https://cookie-script.com/all-you-need-to-know-about-third-party-cookies.html
How do pixel tags work?
Pixel tags are short snippets of code that perform an action - usually related to collecting data about visitors to a website and their behavior on the site and sending off that data to a 3rd party to be processed and stored.
Source: https://taginspector.com/articles/marketing-tags-and-pixels-form-and-function/
Definitions
Term | Definition | Source |
---|---|---|
cookies | Small text files created by a website that is stored in the user’s computer and used to recognized the computer and track references. Cookies may be temporary (for a session) or stored on the hard drive for persistance | https://www.pcmag.com/encyclopedia/term/cookie |
authorization | A security mechanism to determine access levels or user/client privileges related to system resources. | https://economictimes.indiatimes.com/definition/authorization |
access control | A system to authenticate and authorize individuals to access information (ie, the implementation of authorization | https://www.csoonline.com/article/3251714/what-is-access-control-a-key-component-of-data-security.html |
conditional rendering | A version of rendering in which components decide based on one or more conditions which DOM elements will be returned | https://www.robinwieruch.de/conditional-rendering-react |