I use login with facebook in nodejs. I set facebook return url to: api.example.com/api/return.
I also store the token in localStorage and I don't want to use cookie.
when I return to api.mysite.com/api/return I make sure if it success, then I response with 200 and script: window.location = 'https://example.com'
.
The problem is I want to change the localStorage in https://example.com, but I'm in https://api.mysite.com
.
Is there a way to change the localStorage in https://example.com, from https://api.example.com?