Fetch cookie demo

The JavaScript js/main.js included on this page makes a cross-site fetch() call to 3p-site.glitch.me/fetch, which sets a fetch=true cookie in response.

You can view the server code that sets the cookie at glitch.com/edit/#!/3p-site?path=server.js

View the cookie in Chrome DevTools from the Application panel Cookie pane:

Cookie fetch=true shown in the Application panel Cookie pane in Chrome DevTools

The Headers tab in the Network panel shows that the cookie is included in requests:

Cookie fetch=true shown in the Application panel Cookie pane in Chrome DevTools