hasssan / poc-cross-domain-cookie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-domain cookie POC

This is just Proof-Of-Concept. DO NOT use it directly on your code or Production.

Recommended to run on Node.js version >= 20.

Local testing

Add this to /etc/hosts file:

127.0.0.1 1st.com
127.0.0.1 2nd.com
127.0.0.1 3rd.com
127.0.0.1 cookie-cors.1st.com
127.0.0.1 cookie-cors.2nd.com
127.0.0.1 cookie-cors.3rd.com

Run NOT WORKING cross domain cookie

npm run cross-not-working

Run WORKING cross domain cookie

npm run cross-working

About

License:MIT License


Languages

Language:JavaScript 51.6%Language:HTML 48.4%