We have a ASP core web app and the main site is https. We have code in javascript that is opening up a new iframe that is suppose to point to another site that is http. We are giving the window.open function a http:// site, but noticed when it opens, it replaced http with https, which is a problem.
Is there anyway to turn that off? We just want to open it as http. Seems simple enough, but I can't find any information on how to do this.
** Update 1: After some playing around, I decided to try to use Window.open without a target, the modal iframe we were popping this into. It works like its suppose to and opens up as http instead of https.
So now I have to figure out why putting this into the iframe forces that to be https.
the modal looks like this:
<div class="modal fade" id="rangeActiveModal" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center modal-lg">
<div class="modal-content">
<div class="modal-body">
<iframe name="theFrame"></iframe>
</div>
<div class="modal-footer">
<button type="button" id="btnRejoinEnvAndHide" name="button" value="Rejoin" class="btn btn-success">Rejoin</button>
<button type="button" id="btnStopEnvAndHide" name="button" value="Stop" class="btn btn-danger">Stop</button>
</div>
</div>
</div>
</div>
</div>
And the call looks like this:
arenaWin = window.open(url, 'theFrame');
window.open?