function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshmi.sf9lakshmi.sf9 

REST api in between salesforce and UI

Hi,

I have written one rest api class.Other server using the jquery hitting the salesforce and they are facing the issue with the following error

XMLHttpRequest cannot load https://cs36.salesforce.com/services/oauth2/token?grant_type=----&client_secret=-----. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:9084' is therefore not allowed access.

From tool it is working fine.This is rest api in between salesforce and UI

 I tested my class form other salesforce org its working fine.I added their server url in remote site settings as well as in CORS.Please any one suggest me on this issue.Its urgent to me.

Thanks in advance,
lakshmi
sfdcsushilsfdcsushil
​http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource