Home / Companies / Clerk / Blog / May 2021

May 2021 Summaries

2 posts from Clerk

Filter
Month: Year:
Post Summaries Back to Blog
The tutorial provides a step-by-step guide to building a to-do list application using modern web development tools and services without writing any backend code. It leverages Clerk for authentication, Hasura Cloud for creating a frontend-accessible GraphQL API, Heroku Postgres for data storage, Next.js for frontend development, and Tailwind CSS for styling. By using these tools, developers can create a robust application where user authentication is managed by Clerk, data is managed through Hasura's GraphQL API, and the frontend is built with Next.js and styled with Tailwind CSS. The guide explains setting up and deploying the application on Vercel, configuring the Hasura backend to handle CRUD operations with proper permissions, and integrating the frontend to interact with the backend using Apollo Client for GraphQL queries and mutations. Additionally, it demonstrates how to use Apollo's cache and optimistic responses to enhance the user experience by reflecting changes on the frontend immediately after a mutation, rather than waiting for a server response.
May 27, 2021 2,864 words in the original blog post.
HttpOnly cookies are a valuable tool in mitigating the impact of cross-site scripting (XSS) attacks, although they do not prevent such attacks outright. These cookies are designed to be inaccessible to the JavaScript Document.cookie API, meaning they can only be sent to the server, which helps protect session tokens from being stolen during an XSS attack. While the use of HttpOnly cookies is considered a best practice for session management, they serve to lessen the attack's impact by preventing session token exfiltration, allowing organizations to respond more effectively without needing to sign users out after addressing an XSS vulnerability. Unlike other storage methods like localStorage and sessionStorage, which are vulnerable to XSS attacks, HttpOnly cookies provide a standard mechanism for maintaining session token security. Organizations utilizing HttpOnly cookies can remediate XSS vulnerabilities without revoking user sessions, thereby simplifying the response process and reducing potential disruptions for users.
May 06, 2021 660 words in the original blog post.