javascript - Bypassing authentication for localhost in order to implement search in Etherpad -
I am trying to implement the Nutch + Solr based search engine in my Etherpad installation. My main issue is that neither does it support post
authentication. Etherpad and nach are installed on the same machine, so bypassing authentication for a clear solution localhost
Find a way out
This is where I got stuck I do not know the etherpad codebase very well, I have made cosmetic changes so far.
Can someone tell me where should I look, or a possible solution? I've got some interesting bit code that work together with codebase, but it's javascript, so there is no clear way to check if the request is hosted localhost
.
Edit:
I got the code that handles the authentication policy, and checks it with a simple state so that it always returns true
Authentication can be bypassed which prevents me from my initial problem: How can I determine if Host is in localhost
javascript?
if (guestPolicy == "allow") {return; }
leaves me with my initial problem: how do I set it Can the host have a local host in JavaScript?
Use the location
API:
if (/localhost/.test (hostname name))
Context
Comments
Post a Comment