I have a very basic requirement. Take inputs from the user (as of now trying to take only one input) and insert the value in a custom object.
Following is the JS code:-
var applicationModel = skuid.model.getModel(‘Application’);var applicationRow = applicationModel.data[0];
var result = sforce.apex.execute(‘ApplicationMasterController’,‘checkPassedValueFromPage’,
{
appFromSkuid: applicationRow
}
);
The ApplicationMasterController just has 2 lines of code viz.
webservice static String checkPassedValueFromPage(customObject appFromSkuid) {
return ‘tested the flow from Skuid Page’;
}
the method does return the string but on the browser console there is an error which states “No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://c.cs6.visual.force.com’ is therefore not allowed access.”
I have even tried whitelisting the link. but does not help.
Any pointeres for this issue and Is there any other way to achieve this requirement other than what I have tried??
Regards,
Gautam.
Question
No 'Access-Control-Allow-Origin' header is present on the requested resource
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.