• prasanth krishna 20
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,

I am developing an application in Lighting, The functionality of that app is sending a file to Amazon s3 for that I am using AJAX after choosing a file from input type file in HTML, But lighting is not allowing me to connect to Amazon S3. I am getting below error message in console.
 
Refused to connect to 'https://s3.amazonaws.com/CloudFilesDemo/' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.bluetail.salesforce.com https://staging.bluetail.salesforce.com https://preprod.bluetail.salesforce.com".

statusText: "SecurityError: Failed to execute 'open' on 'XMLHttpRequest': Refused to connect to 'https://s3.amazonaws.com/CloudFilesDemo/' because it violates the document's Content Security Policy


Could you please suggest me anyway to achieve this.

Thanks.
Hi,

I am developing an application in Lighting, The functionality of that app is sending a file to Amazon s3 for that I am using AJAX after choosing a file from input type file in HTML, But lighting is not allowing me to connect to Amazon S3. I am getting below error message in console.
 
Refused to connect to 'https://s3.amazonaws.com/CloudFilesDemo/' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.bluetail.salesforce.com https://staging.bluetail.salesforce.com https://preprod.bluetail.salesforce.com".

statusText: "SecurityError: Failed to execute 'open' on 'XMLHttpRequest': Refused to connect to 'https://s3.amazonaws.com/CloudFilesDemo/' because it violates the document's Content Security Policy


Could you please suggest me anyway to achieve this.

Thanks.