Skip to main content
added 14 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

I am getting below problem when i try to upload a file on Google drive using save to drive button.

XMLHttpRequest cannot load https://ap1.salesforce.com/servlet/servlet.FileDownload?file=00P9000000jFRXN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.ap1.visual.force.com' is therefore not allowed access.

XMLHttpRequest cannot load https://ap1.salesforce.com/servlet/servlet.FileDownload?file=00P9000000jFRXN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.ap1.visual.force.com' is therefore not allowed access.

How i can solve above problem using enable "CORS".

I am getting below problem when i try to upload a file on Google drive using save to drive button.

XMLHttpRequest cannot load https://ap1.salesforce.com/servlet/servlet.FileDownload?file=00P9000000jFRXN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.ap1.visual.force.com' is therefore not allowed access.

How i can solve above problem using enable "CORS".

I am getting below problem when i try to upload a file on Google drive using save to drive button.

XMLHttpRequest cannot load https://ap1.salesforce.com/servlet/servlet.FileDownload?file=00P9000000jFRXN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.ap1.visual.force.com' is therefore not allowed access.

How i can solve above problem using enable "CORS".

Source Link
user9839
  • 305
  • 1
  • 12

Cross origin problem when uploading file from visualforce page

I am getting below problem when i try to upload a file on Google drive using save to drive button.

XMLHttpRequest cannot load https://ap1.salesforce.com/servlet/servlet.FileDownload?file=00P9000000jFRXN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.ap1.visual.force.com' is therefore not allowed access.

How i can solve above problem using enable "CORS".