web - Using <base> tag in html does not work when calling an api -


i want run calls outside of web service through website proxy. call proxy http://localhost/proxy?url=http://www.somewebsite.com/ .

my problem lies when want route resources through proxy. add base tag html page so,

<base href = "http://localhost/proxy?url=http://www.somewebsite.com" /> 

in order call image @ http://www.somewebsite.com/someimage.jpeg so,

<img src = "someimage.jpeg" > 

this doesn't work , tries image http:localhost/someimage.jpeg

is there way make base tag work or have other technique.


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -