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
Post a Comment