marushosummers / praha_express_task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrAha Challenge - node/express cookie

Run

  1. Start Server
node app.js
  1. Start Third-Paty site in ngrok
ngrok http 8081
  1. Modify image url to ngrok forwarding url
./first-party/index.html
...

<img src="https://<ngrok-host>/cookie.jpg">
  1. accsess to http://localhost:8080/

  2. Check Developer-console > Application > Cookie

    • Domain: localhost first-party=cookie
    • Domain: ngrok-host third-party=cookie

About


Languages

Language:JavaScript 72.3%Language:HTML 27.7%