I have to pass authentication token from my website to my iframe in a secure way. My iframe is located on the same domain as my website.
Is it secure to pass auth token as parameter to iframe's src property? I mean:
<iframe src={"/purse/index.html?auth_token=" + token} /> UPDATE: By secure I mean that no-one except current (signed in) user have a chance to access the token.
P.S. In your answer pls also describe the way auth_token could be stolen with my approach
$frame.on('load', () => $frame.contentWindow.init(token)). Is it secure?