neilhillman Posted December 2, 2009 Share Posted December 2, 2009 I came across something curious, and I can't find any documentation on it... When you use "window.location.href" to forward a page using Javascript, like so: <script language="JavaScript"> <!-- window.location.href = "http://www.picshost.net/secure/"; // --> </script> ... this works fine, but if you try redirecting to an .htaccess password protected page, like so: <script language="JavaScript"> <!-- window.location.href = "http://username:[email protected]/secure/"; // --> </script> ... this will work in FF, but not in IE! IE returns the Error Message: A security problem occurred. Anyone know any workarounds? Thanks! Neil Link to comment https://forums.phpfreaks.com/topic/183751-windowlocation-to-htaccess-protected-url/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.