<script type='test/javascript' src='https://c.la4-c1-was.salesforceliveagent.com/content/g/js/36.0/deployment.js'></script> <script type='test/javascript'> liveagent.init('https://d.la4-c1-was.salesforceliveagent.com/chat','572360000000BXW','00D35000000v1XJ'); </script>
<html> <head> <script type="text/javascript" src="https://c.la2-c1-chi.salesforceliveagent.com/content/g/js/36.0/deployment.js"></script> <script type="text/javascript"> liveagent.init('https://d.la2-c1-chi.salesforceliveagent.com/chat' '572360000000BXW', '00D35000000v1XJ'); </script> </head> <body>...</body> </html>
Web ページのコードのURLが、リリースコードのURLとは異なることに注意してください。Web ページのコードは「la2-c1-chi」で始まり、リリースコードは「la4-c1-was」と表示されます。リリースを介して提供されるコードには、API エンドポイント URL への 2 つの参照があります。ひとつは「deployment.js」、もうひとつは「liveagent.init」の後に続きます。これら、2 つの参照は標準のものです。API エンドポイント URL への参照が Salesforce が提供するリリースコードスニペット内にあるものだけの場合は、問題はないはずです。システムはコールを正しいチャットサーバーに転送する方法を知っているので、それを更新する必要はありません。それでも、できるだけ早く Web ページのコードを更新する必要があります。リダイレクトが組み込まれていますが、エンドポイントサーバが更新された場合、使用していたサーバーを廃止する可能性があります。廃止された場合、転送はされません。Web ページのコードを更新するまで、古いエンドポイントが機能することを保証する特別な期間はありません。
しかしながら、Web ページコード以外のどこかでその API エンドポイント URL が参照されている場合は、新しいサーバーへの URL を手動で更新する必要があります。これが自分自身のコードの中で URL 参照をハードコードすべきでない理由です。貴社の組織に関連付けられているチャットサーバーは予告なく変更されることがあります。
現在の チャット API エンドポイントだけを許可するようにアクセスを制限した場合、エンドポイントが変更される際、そのエンドポイントへのアクセスがブロックされます。変更された チャット API エンドポイントがブロックされないようにするには、すべての *.salesforceliveagent.com エンドポイントからのトラフィックを許可します。
** 注: 任意の REST API コール内ではエンドポイント URL 参照をハードコードする必要があります。 現時点ではこれを動的参照する方法はありません。そのため、貴社の組織のサーバーが変更された場合、その URL を手動で更新する必要があります。より詳細な情報については、「Switch Server Response during Live Agent REST API call」 (英語) を参照してください。
000382130

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.