https://github.com/blankeos/cookie-pass-examples
🍪 Examples to understand HTTP-only cookies for sessions in a few different backend-frontend setups.
https://github.com/blankeos/cookie-pass-examples
Last synced: 10 months ago
JSON representation
🍪 Examples to understand HTTP-only cookies for sessions in a few different backend-frontend setups.
- Host: GitHub
- URL: https://github.com/blankeos/cookie-pass-examples
- Owner: Blankeos
- Created: 2024-02-17T19:42:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:35:22.000Z (over 2 years ago)
- Last Synced: 2025-02-13T08:41:49.749Z (over 1 year ago)
- Language: Svelte
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cookie Pass Examples
The purpose of this repo is to demonstrate how cookies are being passed around in several FE and BE setups.
Table of Contents
- [Examples](#examples)
- [1. ✅ Metaframework with External Backend](#1-%E2%9C%85-metaframework-with-external-backend)
- [2. ⬜ Same origin](#2-%E2%AC%9C-same-origin)
- [3. ⬜ Reverse-proxy](#3-%E2%AC%9C-reverse-proxy)
- [4. ⬜ Same origin HTMX](#4-%E2%AC%9C-same-origin-htmx)
## Examples
### 1. ✅ Metaframework with External Backend
Frontend and Metaframework Backend should be able to pass the same cookies to the external api backend.
| Port | |
| ---- | ------------ |
| 3000 | Frontend |
| 3000 | Meta Backend |
| 4001 | API Backend |
### 2. ⬜ Same origin
Todo
### 3. ⬜ Reverse-proxy
Todo
### 4. ⬜ Same origin HTMX
Todo