Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Rest API - Issues with CORS request (8 Comments)

$
0
0

Topic by Jackson Hall

Content

I am trying to query contact information from within our organizations SharePoint site, using the REST API and JavaScript. When I try to run the code, I receive a preflight access control check error (image attached).

After reading this article: http://communities.rightnow.com/posts/d1fe2d90d4, I updated the 'SEC_PAPI_INTEG_HOSTS_REST' setting to include *SharePoint.<site>.com and *.<site>.com; however, I still receive the same error.

Is there additional information that needs to be included in the request headers? Are the domain names in the correct format? Are there any other considerations when making CORS requests?

I've enclosed the JavaScript below.

 

Version

Service Cloud, Nov. 16

Code Block

Image


Viewing all articles
Browse latest Browse all 2504

Trending Articles