"Refused to set unsafe header" Javascript error

  • 3
  • Problem
  • Updated 5 years ago
  • Not a Problem
I get this Javascript error on load of every Skuid page, even ones that ship with the tool like PageList:

Refused to set unsafe header "User-Agent"

I'm using Chrome.

Any idea what's causing this?
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb

Posted 5 years ago

  • 3
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
This is actually not a problem, it has no negative effects on the behavior of Skuid Pages --- it's caused by some internal Salesforce code that gets run whenever Skuid is accessing the Web Services API via the Ajax API. Skuid accesses the API sparingly, only using it when there is no other way to retrieve needed metadata, such as the set of Picklist Values valid for a particular Record Type, and for obtaining Picklist Dependencies, or for retrieving Tab metadata (but this last one will soon be removed now that Salesforce is providing this data natively in Apex in Winter 14).
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
OK, gotcha. The main thing is, it's not of my doing. :)