Hi Justin,

The ML web app is accessed directly via a browser (Chrome or Firefox).

The subsequent request (apparently not via Ajax yet) looks like this :

"GET /release-tracking/services/get-products.xqy HTTP/1.1" 401 209 - "MarkLogic"


This is when I comment out the <http:authentication> option in my call to
xdmp:http-get .

The 401 response status code means "Unauthorized" .

I'm hoping there's a way to tell xdmp:http-get to not need to supply a
username / password since I'm already authenticated on the same app / port.

Regards,
Danny

On Thu, Jul 30, 2015 at 10:13 AM, Justin Makeig <[email protected]
> wrote:

> That's the job of the client with HTTP auth. Which client are you using?
> What does your XHR request look like? Is there CORS involved? HTTPS? A
> password manager?
>
> Justin
>
> > On Jul 30, 2015, at 10:00 AM, Danny Sinang <[email protected]> wrote:
> >
> > I have an ML app on port 7600 which prompts me for credentials, which is
> fine.
> >
> > But the same app makes subsequent HTTP service calls to fetch data via
> Ajax from the same port. Each of these subsequent calls will prompt for a
> username and password unless I hard-code the credentials in my XQuery
> script.
> >
> > Is there a way to tell ML to just reuse the credentials I initially
> provided so I won't have to reenter them or hard code them in ?
> >
> > Regards,
> > Danny
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to