We have a big website with mix of https and http pages. And when i am on https page it tries to load resources by http protocol and some browsers block it as insecure (chrome for ex.).
So the question: how can i do some filter that allows me to load resources by https only from certain pages?
We are using httpd server and Spring security in our application.
So, how can i construct urls in JSP relative by context and by protocol? (I mean i cant simple write relative URLs in my page, because it is used in different contexts, for example as example.com/resource.css and mydomain.corp/resource.css)