Skip to content

Instantly share code, notes, and snippets.

@PetersonDave
Created November 25, 2013 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetersonDave/7636020 to your computer and use it in GitHub Desktop.
Save PetersonDave/7636020 to your computer and use it in GitHub Desktop.
Setting Sitecore Item Web API permissions
app.config(
...
'$httpProvider', function($httpProvider) {
$httpProvider.defaults.headers.put = { 'X-Scitemwebapi-Username': 'admin' };
$httpProvider.defaults.headers.put = { 'X-Scitemwebapi-Password': 'b' };
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment