I got the access denied error when i am calling external URL from Ajax call. it is working fine without SharePoint 2010.
Please help me to resolve this.
Isn’t this normal Same-origin policy? Unless that site has CORS enabled. There are ways to solve this, such as CORS, JSONP or app proxy.
Jan 29 ’15 at 7:04
i had also tried with jsonp but still its not working
– Rajesh Joshi
Jan 29 ’15 at 7:07
Note that the server must implement support for JSONP, it is not automatically given that the server in your example supports this.
Jan 29 ’15 at 7:08
Understanding how the JSONP hack actually works would give you a good idea. This answer on SO should give a good explanation. If it is your server then do consider my two other suggestions as well (CORS and web proxy).
Jan 29 ’15 at 7:14
@RajeshJoshi, you should probably remove sharepoint apps tag in the question. It is misleading as you are working on SP 2010.
– Nadeem Yousuf
Jan 29 ’15 at 7:21