I am trying to access the sharepoint rest api in a html page via jquery ajax call. I am already logged into Sharepoint and authentication shouldnt be a problem. But when I try to access the a list by name it throws 403 (Forbidden) error. But the same url when I access it via the browser I get a response. Can any one help me on this issue?
https://i.stack.imgur.com/cDNI6.png
When you say from an html page, you mean from a .html file? Or are you on a wiki/publishing/site page?
From a .html page. I am already logged into Share point in the same browser
I merely ask, because HTML pages aren’t really “supported”. Lots of functionality is baked into the aspx pages… What is the purpose of using the HTML and not an aspx page?