KelseyDH / storage_access_api_rails

Storage Access API example of two rails apps sharing cookies via 1st party interactions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To use:

git clone git@github.com:KelseyDH/storage_access_api_rails.git

Currently this installation uses puma-dev to load parent.test & child.test domains.

To install puma-dev:

brew install puma/puma/puma-dev
sudo puma-dev -setup -d test
puma-dev -install -d test

Then boot up both servers.

To start parent server:

cd parent
bundle install
puma-dev link

To start child server:

cd child
bundle install
puma-dev link

Then visit http://parent.test to try it out! The iframe links to http://child.test.

To stop the servers run puma-dev --stop

About

Storage Access API example of two rails apps sharing cookies via 1st party interactions


Languages

Language:Ruby 72.4%Language:HTML 17.2%Language:JavaScript 8.3%Language:CSS 2.1%