• Prerna Luthra
  • 5 Points
  • Member since 2019

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 1
When I use this in my visual force page -
<apex:includeScript value="/support/console/46.0/integration.js"/>
I get a 404. For some reason, the integration.js script cannot be found.
Any idea why that's happening?
We have a custom live agent implementation in our appilcation.
The chat window from our application sends messages to our application server. Our application server then, sends the REST requests to the Live Agent REST API server configured in our Salesforce instance.

We are trying to block some visitors by IP and that seems to be pretty easy to do in Salesforce. The problem is that as we have our application server sending the REST API requests to Salesforce, the visitor IP we have in the chat requests are always our application server's IP, not the actual visitor IP.

I tried to change that the X-Forwarded-For header, but Salesforce ignores that.

Is there any way to specify the visitor's IP address when sending a new chat REST API request to Salesforce? I checked the documentation and couldn't find anything about it.

Thank you.