I am trying to access a Restful web service that requires HTTP Basic Authentication. Does the XmlHttpProxy support HTTP Basic authentication?
You can use Basic Authorization with the XMLHttpProxy
Define it in your xhp.json file service definition like :
"username" : "myname",
"password" : "socool"
You want to make sure you don't have the xhp.json file in a web accessible directory.
I keep mine in /WEB-INF/ where a user can not access.
To do this you will need You will need a context param like :
Find out more here :
Thanks for the prompt response . It works :) .
Hey is there someplace I can find the comprehensive list of parameters that can be configured to tweak the behavior of the XMLHTTPProxy object? I know of the following:
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.