Error while trying to add Amazon S3 server

Modified on Mon, 17 Oct, 2016 at 6:31 PM

Why we get an error "Amazon s3 unauthorized endpoint please check setup- security- remote site setting endpint= https://multipart.s3.amazonaws.com?cors" while trying to add Amazon s3 server.


Attachmnets%20pic%201.png


To avoid this error user will have to add the following remote site settings to their salesforce instance:

The below example will show how to add ‘multipart’ bucket settings to salesforce:

Go to Setup ► Security Controls ► Remote Site Settings


Create a new page with the following specification:

⦁ Remote Site Name: Multipart (Bucket Name as specified in your server)

⦁ Remote Site URL: ⦁ https://multipart.s3.amazonaws.com

⦁ Check the Active box

⦁ Save the settings


Note: In the above example, Remote Site Name can consist any name which the user prefer. The Remote Site URL should consist of the specified URL only with the respective bucket name in place of ‘multipart’.

CORS Settings -

When you save your settings a CORS setting will be done on your bucket, so that this application can access that bucket. If you like to restrict the permissions to bucket in anyways through CORS please go to your amazon account, and change the CORS configuration there as shown below.

An example setting is given below which is likely be set by this application. This setting gives access to your bucket from any salesforce instance and application.


Attachmnets%20pic%202.png


The background coding for the Cors Configuration for Amazon S3 Server is as shown below: 


Attachmnets%20pic%203.png





Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article