Configure Remote Site Settings
Configure settings for a remote site.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
Available in: Enterprise, Performance, Unlimited, Developer, and Database.com Editions Visualforce and S-controls aren’t available in Database.com |
| User Permissions Needed | |
|---|---|
| To configure remote settings: | Customize Application or Modify All Data |
Before any Visualforce page, Apex callout, or JavaScript code using XmlHttpRequest in an s-control or custom button can call an external site, that site must be registered in the Remote Site Settings page, or the call fails.
To access the page, from Setup, enter Remote Site Settings in the Quick Find box, then select Remote Site Settings. This page displays a list of any remote sites already registered and provides additional information about each site, including remote site name and URL.
For security reasons, Salesforce restricts the outbound ports you can specify to one of the following:
- 80: This port only accepts HTTP connections.
- 443: This port only accepts HTTPS connections.
- 1024–65535 (inclusive): These ports accept HTTP or HTTPS connections.
To register a new site:
- Click New Remote Site.
- Enter a descriptive term for the Remote Site Name.
- Enter the URL for the remote site.
- To allow access to the remote site regardless of whether the user’s connection is over HTTP or HTTPS, select the Disable Protocol Security checkbox. When selected, Salesforce can pass data from an HTTPS session to an HTTP session, and vice versa. Only select this checkbox if you understand the security implications.
- Optionally, enter a description of the site.
- Click Save to finish, or click Save & New to save your work and begin registering an additional site.

