We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [cross-domain]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
95 views

SCIM User create defaults for Timezone and EmailEncoding

If i create a user using the SCIM Rest APIs and don't populate timezone, it defaults to Pacific time. Since email encoding isn't a supported value in the schema, it always defaults to UTF-8. Does ...
0
votes
1answer
768 views

Display a page in an iframe from a diferent domain

I am trying to build a simple visualforce page with an iframe. my page: <apex:page> <apex:iframe src="http://my.website.com" scrolling="true" id="theIframe"/> </apex:page> ("...
7
votes
1answer
590 views

Change URL of Popup Window from Lightning

So I'm in the situation where I have a Lightning component that's embedded in LEX, and it provides links that open up a new window containing a Visualforce page. Each link opens the same page but ...
4
votes
3answers
1k views

Static Resource blocked from loading by Cross-Origin Policy

I have a global Visualforce component in the package I am developing that uses the following Static Resource to load fonts: <apex:styleSheet value="{!URLFOR($Resource.ImagesAndJavascriptZip, '/css/...
6
votes
1answer
362 views

Cross Origin Domain Problem on Apex Rest Method

I have been using custom rest method for long time for file uploading and it was working properly. however last week , it started to throw error where the request is send. I have rest method in class ...
3
votes
0answers
176 views

LockerService causes access error when managed package component tries to load js from its static resource

I turned on LockerService to test our Lightning components and I get the following error when loading a page. Our component is trying to load a .js file from its own static resource and it throws the ...
0
votes
1answer
957 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
3answers
976 views

Cannot call apex rest service from jquery on Visualforce page

I'm new to rest services in Salesforce. I've defined the following rest service in Apex: @RestResource(urlMapping='/mediaPlanDetail') global with sharing class MediaPlanDetailService { @HttpGet ...
2
votes
0answers
855 views

cross domain iframe access

I have a packaged Visualforce page ( hosted on dev1 for example) which is trying to access another VF page hosted on client's org (org myclient, for example) by using apex:iframe, the iframe is ...
3
votes
1answer
57 views

How To Automatically Remove Empty Home Page Component?

Before the latest updates, we were able to use Javascript Post Messaging from a VisualForce Home Page Component in order to hide it when empty. For example: if({!someCondition}) parent.postMessage('...
2
votes
1answer
592 views

How do I submit a simple AJAX form and avoid the cross origin issue?

I've placed a form on a page that I must use ajax to submit with. Since I'm using a .net site I can't place the form tag around the form and I don't have access to the backend (nor the knowledge of ....
1
vote
0answers
358 views

Visualforce and Console Integration Toolkit results in Cross-Origin Framing error

I'm working on an App-level console component that has links in it. Those links should open new tabs (preferably in the console layout, but a new browser tab works as well) not on the Salesforce ...
1
vote
1answer
738 views

POST /validateEmail - How do we utilize this function with only JavaScript/JSON/JQuery?

I have a need for using the POST/validateEmail to do client side ajax validation on an email address prior to submitting data from a webform/webcollect to a data extension. source: http://code....
1
vote
2answers
1k views

Is there a way to connect directly to Salesforce's REST API directly from JS? [closed]

I get a cross origin error when I do an AJAX call, and am wondering if there´s a way to solve that. Thanks!
4
votes
1answer
583 views

Sidebar visualforce iframe “sometimes” served from force.com instead of saleforce.com?

We're a consulting agency and work with a large number of salesforce customers. We developed a simple visualforce sidebar component that we are trying to load into all of our customers instances to ...
8
votes
1answer
2k views

Critical Update “Serve Static Resources from the Visualforce Domain” still serves resources via Salesforce Domain

After activating the Critical Update, I checked a couple of my orgs using Managed Packages which provide resources used on buttons and scripts in the Standard Salesforce domain. It surprised me that ...
22
votes
2answers
62k views

XMLHttpRequest cannot load, No 'Access-Control-Allow-Origin' is present

We have a customer who is having a problem with the embedded visualforce page for their custom objects that include our component. The issue is with the Cirrus_Files_Dog visualforce page. The page is ...
7
votes
3answers
13k views

How to refresh the parent window after opening a pop up window from inline page?

I opened a Popup from an inline VF page in SFDC and then after some action I was able to close the window but needed a refresh of the Top window from inline frame . My code is as below for opening a ...
5
votes
1answer
4k views

Can we hack CORS support for custom APEX Rest services (without a proxy)?

I thought not, until I saw this post How do I open up a public REST API to JavaScript in any website? (and tweet https://twitter.com/metadaddy/status/453026655892545536) by Pat. Pardon my denseness ...
4
votes
2answers
1k views

Old Console and VisualForce Pages

I have a relatively simple Visualforce page that just uses the apex:detail to show the cases detail on the page. With that comes the out of the box change owner and change record type links and ...
1
vote
1answer
2k views

apex:inputField

I created a Visualforce page whose source code is: <apex:page standardController="Lead" extensions="PopupController" sidebar="false" showHeader="false" title="Request to Change"> <apex:...
8
votes
1answer
1k views

Security Scanner finds XSS False Positives / JSENCODE incompatible with Boolean fields?

Before I submit my app for Security Review I checked it with the free scanner. It marked the following line of JS-code in a Visualforce as Critical XSS vulnerability: <script>var trueOrFalse = '...
2
votes
1answer
620 views

Save to Drive Button Provided by Google related Problem

I am stuck in my visualforce page where I am including script provide by google to achieve a Save button which below: <script src="https://apis.google.com/js/platform.js"></script> <...
4
votes
1answer
919 views

ForceTK in a Chrome Extension - Cross-Domain Query Issue

I'm fiddling around with writing a Chrome Extension for Force.com and came across the following blog post (http://th3silverlining.com/2013/09/14/developing-chrome-extensions-for-salesforce/). I ...
5
votes
2answers
4k views

How to embed standard page in vf page?

My requirement is to embed standard opportunity home page to visual force page, I have tried using iframe but i don't want to show sidebar and header of standard page. For removing the sidebar and ...
10
votes
1answer
61k views

iframe: Protocols, domains, and ports must match error

I have an VF page with an iframe displaying a force.com site from a different SF instance and I'm receiving this error in chrome caused by SfdcCore.js: Blocked a frame with origin "https://<...
11
votes
1answer
1k views

Flex security cross-domain issue in salesforce

I have developed a flex component which I am using on salesforce visualforce page. When I run that flex component on local machine it works fine. But when I run i through salesforce page it says *** ...
2
votes
3answers
2k views

How to (cross-domain) access Chatter Profile pics from Javascript code?

I have a JS library in a static resource. This library's code renders a with a Chatter Profile picture taken from the results of a [SELECT FullPhotoUrl FROM User] Or at least tries to. This doesn'...