I have CSS with background-image's elements that refer to another site. Problem is, that in IE you can't have resources if you are in HTTP while they are in HTTPS and vise versa.
I am using ASP.NET and I want to find a way of letting the CSS know about if it was requested in HTTPS or NOT...
And I MUST use absolute... (its on a different site)
Thanks!
Just omit the protocol (http:
or https:
) in your URLs: //domain/path/image.png
will use the same protocol as the current page.
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