Initial page is on port 3001
(no server, CRA frontend) there one can open a pop-up window that points to 3000
port (Rails server).
I'm trying to set localStorage
value in parent window (opener).
<<-HEREDOC
window.opener.localStorage.setItem('authorization', 'Bearer #{@jwt_token}');
window.close();
HEREDOC
But I'm getting
Do you think there's a way I can add storage value from popup to opener?