java - Bypass Basic authentication to solr from my website with tomcat -


i have website in same server sorl. solr allow queries website, , not external ips, of course security reasons. webpage 1 can queries like:

$.getjson("http://127.0.0.1:8080/solr/select/?q=*:*&wt=json&json.wrf=?&indent=true", function(result){} 

but since have sorl application configured auth prompting write username , password.

    <security-constraint> <web-resource-collection>   <web-resource-name>solr lockdown</web-resource-name>   <url-pattern>/</url-pattern> </web-resource-collection>    <auth-constraint>      <role-name>solr_admin</role-name>      <role-name>admin</role-name>    </auth-constraint>  </security-constraint>     <login-config>    <auth-method>basic</auth-method>    <realm-name>solr</realm-name>  </login-config>  

i checked in here, solution blocking main website , still prompting password when query tomcat : bypass basic authentication specified ip address

this not working because making json call client browser, not web server. in scenario calls solr originate client machines. need have web server make call solr , expose via url in website json call can execute.

also, if restrict ip address, need remove basic authentication or both applied.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -