Skip to main content
Nintex Community Menu Bar
Question

jquery. Refused to set unsafe header User-Agent" on REST data source"

  • July 10, 2024
  • 1 reply
  • 42 views

Forum|alt.badge.img+3

I created a Skuid Platform to explore what can be done.

1.  I created a new data source that was REST data type.
According to the github API docs, it is required to set these  default headers

  • Accept: application/vnd.github.v3+json
  • User-Agent: joseph-ortiz
2. I created a blank page and added a model with the the newly created data source. 
3. I then previewed the page and noticed in the console that there was error that reads:

"Refused to set unsafe header “User-Agent”

I figure I can create another API that wraps around the github endpoint but wanted to see if you ran into this issue.

the actual call i’m trying to make is

GET /users?since=135 HTTP/1&#46;1Host: api&#46;github&#46;com<br />User-Agent: joseph-ortiz<br />Accept: application/vnd&#46;github&#46;v3+json


thanks!

1 reply

Forum|alt.badge.img+10
  • Nintex Employee
  • July 10, 2024

Hi Joseph, are you attempting to connect to Salesforce as an external data source? If so, this known Salesforce issue may be coming into play:
https://success.salesforce.com/issues_view?id=a1p300000008eUCAAY