<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1046278168754291&amp;ev=PageView&amp;noscript=1">
Blog

Saturday, 08 March 2014 12:18

Cross domain requests fail after SharePoint Online Service Update

Written by Louise Fahys
Be the first to comment!

We recently encountered an issue after the latest SharePoint Online service update where our SharePoint Apps that make Cross-Domain calls were returning errors that they were unable to read the list data in the HostWeb.  

These same Apps would run fine in other SharePoint Online Tenants but not in our Tenant.  After several weeks of interaction with Microsoft the issue was identified as being a problem that was introduced by the latest Service Update and the case of our AppWebURL.  Our AppWebURL was being passed as CompanyName.sharepoint.com instead of companyname.sharepoint.com.  Once we modified our code to make the AppWebURL lowercase the issue was resolved.  Now our code to retrieve the AppWebURL looks like this:

 

  1. appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl") );
  2. appweburl = appweburl.toLowerCase();

Want help from Code A Site to help you?

Make CAS Your Office 365 Provider!

Tagged under SharePoint Online, SharePoint App

Louise Fahys

Louise Fahys

"My passion is to take ideas and build them into software solutions that help people." Louise has over 20 years of business and technical experience including project management, website design, architecture and implementation. Louise has helped start and run several interactive sites for sports organizations and businesses.

Subscribe to Email Updates