XMLHttpRequest cannot load https://login.microsoftonline.com/extSTS.srf. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '//--my sharepoint-public site--//' is therefore not allowed access.
when I tried the ajax call using fiddler its working fine. but embedding the code in page is giving me an error. Any help will be highly appreciated.