Reproduction for meteor/meteor#3078.
You must have a local copy of nginx installed.
git clone https://github.com/hwillson/meteor-issue-3078.git app1
cd app1
meteor npm i
ROOT_URL=http://localhost/app1 meteor --port 3100
In a separate terminal window:
git clone https://github.com/hwillson/meteor-issue-3078.git app2
cd app2
meteor npm i
ROOT_URL=http://localhost/app2 meteor --port 3200
In a separate terminal window:
-
sudo nginx -c /path/to/app/app1/nginx.conf
-
Access http://localhost/app1; in your browser console, run:
Meteor._localStorage.setItem('key', 'Some Value!');
- Access http://localhost/app2; in your browser console, run:
Meteor._localStorage.removeItem('key');
- Go back to http://localhost/app1; in your browser console, run:
Meteor._localStorage.getItem('key');
The item will be removed even though we're using 2 separate applications.