I have seen this type of question asked but the other way. namely to redirect http to https.
This my scenario. I have a asp.net core app. I deploy it to my test server. When I view in an eternal browser the js and css etc will not load up. Upon inspection it is redirecting everything to https. I do not want this.
How can i force it to 'stay' with http?
just remove the app.UseHttpsRedirection(); in Configure method in Startup class.
And nothing would be via HTTPS unless explicitly requested.
Goto project properties --> Debug --> uncheck Enable SSL

One more hint:
remove the schema from the URL, so it will load the referenced scripts and css files according the client's URL (http or https)
<script src="//cdn.mysite.com/myscript.js" type="text/javascript"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With