Die Schaltfläche für Messaging in der Anwendung und online wird nicht geladen, wenn eine Drittanbieterbibliothek auf der externen Website (z. B. Azure Application Insights) Korrelationsheader (z. B. Header "Priority") zu den XHR-Anforderungen hinzufügt, was zu unerwarteten CORS-Preflight-Anforderungen für "embedded-service-config"- und "businesshours"-Anforderungen für Messaging in der Anwendung und online führt.
In der Browserkonsole werden folgende Fehler angezeigt:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://MyDomain.my.salesforce-scrt.com/embeddedservice/v1/embedded-service-config?orgId=<orgid>&esConfigName=<ESDDevName>. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://MyDomain.my.salesforce-scrt.com/embeddedservice/v1/businesshours?orgId=<orgid>&esConfigName=<ESDDevName>. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://MyDomain.my.salesforce-scrt.com/embeddedservice/v1/embedded-service-config?orgId=<orgid>&esConfigName=<ESDDevName>. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://MyDomain.my.salesforce-scrt.com/embeddedservice/v1/businesshours?orgId=<orgid>&esConfigName=<ESDDevName>. (Reason: CORS request did not succeed). Status code: (null).
Fügen Sie die Domäne "https://*.my.salesforce-scrt.com" zur Liste der correlationHeaderExcludedDomains hinzu.
004259605

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.