• Emmanuel Nirige
  • 5 Points
  • Member since 2014

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
I'm trying to use the Live Agent REST API but I'm bumping into CORS issue. The AJAX request:
    type: "GET",
    url: LiveAgent._Url + "/System/SessionId",
    headers: {
        "X-LIVEAGENT-AFFINITY": "null",
    success: LiveAgent.ChasitorInit
This results in a preflight (OPTIONS) HTTP request with the following headers:

Access-Control-Request-Method: GET
Access-Control-Request-Headers: x-liveagent-affinity,x-liveagent-api-version
Origin: https://mylocaltest.com

But the response headers only have:

Access-Control-Allow-Origin: https://mylocaltest.com
Access-Control-Allow-Credentials: true

It is missing the Access-Control-Allow-Headers header.
I am using the salesforce console integration toolkit api method sforce.console.setCustomConsoleComponentButtonIconUrl to change the default phone icon in footer console view. I am getting the response as successful but the icon is not getting changed.

Can anyone help me on how to change the default icon in console view?