I was looking for an example where Marklogic Rest API is called using AJAX. GET OR POST METHOD using authentication. Any help is greatly appreciated. Thanks
Asked
Active
Viewed 147 times
1 Answers
3
The example using jQuery at https://developer.marklogic.com/learn/semantic-infopanel is fairly complete. It lacks authentication, but http://api.jquery.com/jQuery.ajax/ explains how to add basic authentication and Is Digest authentication possible with jQuery? has some options for digest authentication.
Along with authentication there are other security issues to consider: CSRF and CORS for instance.