Is there an HTTP header to say what base URL to use for relative links?
html, http
Solution
There is no such for HTTP. But you can set the base URL with HTML’s `BASE` element like:
<base href="http://example.com/">
Problem
I am retrieving a page from another host, and then initializing the form with data from a database before sending it on to the user. I need to make the URLs in `href` and `src` attributes absolute, so that the browsers load them from the right place. Can I set an HTTP header to cause this to happen without modifying the HTML?