- Start Server
node app.js
- Start Third-Paty site in ngrok
ngrok http 8081
- Modify image url to ngrok forwarding url
./first-party/index.html
...
<img src="https://<ngrok-host>/cookie.jpg">
-
accsess to http://localhost:8080/
-
Check Developer-console > Application > Cookie
- Domain: localhost
first-party=cookie
- Domain: ngrok-host
third-party=cookie
- Domain: localhost