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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -