开发者

PHP/Javascript iFrame redirect SSL error

开发者 https://www.devze.com 2023-01-06 04:44 出处:网络
I have a problem with a redirect I 开发者_JAVA百科am trying to do from within a iframe, I keep getting a SSL certificate error, is there a specific wayshould be redirecting from within an iframe? I am

I have a problem with a redirect I 开发者_JAVA百科am trying to do from within a iframe, I keep getting a SSL certificate error, is there a specific way should be redirecting from within an iframe? I am usig this code,

echo "<script type='text/javascript'>top.location.href = '$redirect';</script>";

I have also tried a standard PHP header redirect, but that doesn't work either.


Alternatively try

window.open('$redirect','_top');

It looks like you are going to break the back button too. I would do

top.location.replace('$redirect');


Why is the url in $redirect? Does the url match the exact certificate?

0

精彩评论

暂无评论...
验证码 换一张
取 消