javascript - Can window.location change from https to http -


i have store receipt window in https. want use window.location change location https http.

i have code this.

var currenthost = window.location.host; window.location.href = "http://" + currenthost + "/store/closestorewindow?gotouri=" + url 

it goes url expect, still https. it's security thing blocking change in protocol.

should work?


opps. think may have discovered filter in app causing redirect https. window.location works fine. sorry that.

server might forced use https. if case cannot change client side javascript. if code passes required url , response https case.

ivo stoykov


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -