- Create keys and certificate for HTTPS. In this folder, run the following commands (requires openssl)
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365openssl rsa -in keytmp.pem -out key.pem- Run
npm installto install dependencies (express,cookie-parser). - Run
npm startto start the app at http://localhost:3000. - Open
iframe.htmland follow the instructions, or follow these steps manually: - Visit http://localhost:3000/cookie to set a cookie with a name and value of your choice. If you visit http://localhost:3000 (outside of an iframe), you should see the cookie you just created.
- Open http://localhost:3000?embed in an iframe (make sure to include the
embedquery parameter). - When prompted to grant storage access, grant access.
- As with the non-iframe version, you should now see the cookie you created (assuming storage access was granted in step 3).
mrksbnch/storage-access-headers
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|