Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Core.CrossDomainLib not working anymore in Azure Web Apps #1891

Open
YasharGK opened this issue Jan 28, 2020 · 1 comment
Open

Core.CrossDomainLib not working anymore in Azure Web Apps #1891

YasharGK opened this issue Jan 28, 2020 · 1 comment

Comments

@YasharGK
Copy link

Category

[x ] Bug
[ ] Enhancement

Environment

[ x] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

Expected or Desired Behavior

Executing Javascript calls from a SharePoint page to a (provider-hosted) MVC websites, which is hosted on Azure App Service, using Core.CrossDomainLib

Observed Behavior

Solutions based on the Core.CrossDomainLib are not working anymore.

The Javascript calls do not work anymore. Debugging the provider-hosted app code it seems that "SharePointContextProvider.Current.GetSharePointContext(HttpContext)" returns null.

This issue seems to be related to the app-service-samesite-cookie update which is rolled out recently by Microsoft: https://azure.microsoft.com/en-us/updates/app-service-samesite-cookie-update/

@SeznecMoran
Copy link

Hi,

I have the same behavior on a SharePoint Hosted App with this code :
https://github.com/SharePoint/PnP/blob/master/Samples/Core.EventReceivers/Core.EventReceiversWeb/SharePointContext.cs

The issue started the 24/01/2020, after the last Azure Update :
https://azure.microsoft.com/en-us/updates/app-service-samesite-cookie-update/

If you find a solution, please share it!

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants