Add custom header to Chat Request

Hello,

I'm trying to add a custom header in web chat request from widget's config file (widgets.config.js). My configuration file looks like this:

window._genesys.widgets = {
................
main: {
.................
header: {
"Application": "abcdef"
}
..................
},
webchat: {
.............
enableCustomHeader: true,
..............
}
}

but it doesnt work. Am I missing something?

Thank you in advance.

Hello,

Unfortunately, this WebChat widget capability is not supported with Genesys Cloud.

It is/was meant for Genesys Engage Chat (chat with other platform), allowing to set an "Authorization" header with a custom/configured value (only "Authorization" was allowed as header name - in window._genesys.widgets.main.header).

With Genesys Cloud Chat v2, the Authorization header is used to carry the JWT obtained as the result of the create chat request.
So it can't be overridden with another custom value.

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.