Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

3box/3box-iframe-browser-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3box-iframe-browser-test

Use for testing simple assumptions about browser features. Currently tests using localstorage and indexedDB in an iframe with a differing origin.

Usage

iframe folder includes code for a simple iframe. The js for the iframe is found in iframe.js and is built to dist/iframe.js. Server.js serves these files on port 3031

Run and build iframe with:

npm run start:iframe

primary folder includes code for a simple webpage. There is index.html and index.js. Index.js is built to dist/index.js. Server.js serves these files on port 3030

Run and build webpage with:

npm run start:primary

To easily test same-origin and cross-origin policies install and use ngrok to run tunnels for both. Then set the iframe domain const IFRAME_URL in /primary/index.js

About

Use for testing simple assumptions about browser features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors