- 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 365
openssl rsa -in keytmp.pem -out key.pem
- Run
npm install
to install dependencies (express
,cookie-parser
). - Run
npm start
to start the app at http://localhost:3000. - Open
iframe.html
and 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
embed
query 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).
-
Notifications
You must be signed in to change notification settings - Fork 0
mrksbnch/storage-access-headers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published