I'm trying to use the Live Agent REST API but I'm bumping into CORS issue. The AJAX request:
$.ajax({
type: "GET",
url: LiveAgent._Url + "/System/SessionId",
headers: {
"X-LIVEAGENT-AFFINITY": "null",
"X-LIVEAGENT-API-VERSION": 35,
},
success: LiveAgent.ChasitorInit
})
This results in a preflight (OPTIONS) HTTP request with the following headers:
Access-Control-Request-Method: GETAccess-Control-Request-Headers: x-liveagent-affinity,x-liveagent-api-versionOrigin: https://mylocaltest.comBut the response headers only have:Access-Control-Allow-Origin: https://mylocaltest.comAccess-Control-Allow-Credentials: trueIt is missing the Access-Control-Allow-Headers header.8 Antworten
