Skip to content

pishposh/storage-access-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Storage Access API Example

Usage

  1. update /etc/hosts to include entries for 3 unique domains. for example:
127.0.0.1   www.parent-a.com
127.0.0.1   www.parent-b.com
127.0.0.1   sub-frame.example.com
  1. start three local webservers; 1 for each parent, another for the sub-frame.. for example (using http-server):
cd parent-a && http-server -p 8181 &
cd parent-b && http-server -p 8282 &
cd sub-frame && http-server -p 8888 &
  1. load www.parent-a.com and www.parent-b.com in Safari Developer Preview

  2. test storage from embedded sub-frame access www.parent-a.com and www.parent-b.com

  3. clean up

ps aux | grep [h]ttp-server
kill -9 [pid...]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published