Questions tagged [cors]

Questions related to Cross-origin resource sharing (CORS) within Salesforce. This error can usually be identified using the browser's developer tools.

Filter by
Sorted by
Tagged with
1
vote
0answers
154 views

Calling @ApexRest web service (services/apexrest) from Visualforce page in same org [duplicate]

I've been looking all over the place to figure out how to approach this. I'm trying to call a web service (services/apexrest) from the same org. I'm recieving the following error: XMLHttpRequest ...
0
votes
1answer
399 views

Our form is giving the XMLHttpRequest cannot load No 'Access-Control-Allow-Origin' error

I have researched and researched and tried everything out there on this SalesForce error we are getting. We were given an html form from Salesforce and it worked until we added our own conditional ...
11
votes
2answers
111 views

CORS issues with Chatter API Photo Posting

I have a Chatter Communities API request that creates a new user profile picture. This API callout works when I use an app like Ruby or even a cURL command. However, using an AJAX callout, I get a ...
3
votes
0answers
353 views

Ionic2 forcetk issue with CORS

following @ccoenraets' tutorial at http://coenraets.org/blog/2016/02/angular2-ionic2-salesforce/ I get an error with the CORS proxy (I think). Is it possible to deploy my own CORS app in heroku? Can ...
0
votes
1answer
2k views

Refreshing SFDC page from VF frame: CORS issue

I have a VisualForce page inside a standard SFDC Page Layout. For UX reasons, we want to be able to refresh the outer (parent) page when something is clicked on the VF page. When we try and do this ...
2
votes
1answer
1k views

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=...
0
votes
1answer
377 views

Error on HttpRequest from Visualforce to standard SF domain

We are trying to make an HttpRequest from a custom button that is on a Visualforce page (custom View override) using Javascript. The request is being sent to a custom report. It contains a set of ...
0
votes
1answer
1k views

Enabling CORS for visualforce domain

With Summer 15 release Javascript in HTML home page Components is not allowed, but is allowed in VF components/pages included in home page side bar. When I try to access DOM elements on salesforce ...
3
votes
1answer
596 views

Access to parent element from Visualforce page with javascript

I'm trying to access to an element located in an Standard Page with Jquery from my visualforce embedded. There's a way to have access to those elements, now I'm getting an error like: "Uncaught ...
8
votes
3answers
982 views

CORS APEX Rest Services

How can I get my custom Apex Rest Services to use the CORS settings? There are many similar questions like this one; but these were asked before CORS was supported.
1
vote
0answers
417 views

Apex REST CORS request

I'm getting an error upon calling my REST endpoint from a visualforce page with Angular. My error is this: XMLHttpRequest cannot load https://... A wildcard '*' cannot be used in the 'Access-...
1
vote
2answers
8k views

Why is CORS (localhost) whitelist not working for authentication?

So there are now settings to add domains to the CORS whitelist so they can access the REST API via javascript. I tried to get this to work using my localhost with an a local ssl so its https://coach....
1
vote
0answers
127 views

Want to remove Saleforce1 blue header using Jquery, but getting blocked due to Cross Domain security

Uncaught SecurityError: Blocked a frame with origin "https://c.na15.visual.force.com" from "page address is here "accessing a frame with origin "https://na15.salesforce.com". Protocols, domains, and ...
0
votes
0answers
480 views

How to send an Ajax request to a force.com visualforce page from our public domain Site.com site (across domains)?

We're trying to retrieve whether our service is available in particular zip codes. In Salesforce we have a custom object called "Service_Zone__c," each record of which has a zipcode and an "in"/"out" ...
2
votes
2answers
3k views

Access the force.com REST API with a pure Javascript page

I want to develop a front-end in Javascript (possibly with one of the fancy frameworks around such as AngularJS) that consumes the REST API of my Salesforce org. I don't want to embed my project in ...
1
vote
1answer
1k views

File Attachments over AJAX call (XMLHttpRequest error)

Im trying to write a script that will grab a series of attachments and zip them up using JSZip. All is working well but the script does a call to grab the download url it seems like whats happening ...

1
2