How Implement Cookie Policy in SharePoint Online

Umair Aslam 20 Reputation points
2024-12-26T11:50:55.5766667+00:00

Hello Microsoft Community,

We are working on an SPFx-based portal and need guidance regarding cookie policies in SharePoint Online:

  1. What is Microsoft’s default cookie policy for SharePoint Online, and does it allow customization?
  2. Is it possible to implement a cookie consent banner for users accessing the portal as shown below.

image (12)

Your help will be greatly appreciated

Thank you.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,241 Reputation points Microsoft External Staff
    2024-12-27T02:24:00.2+00:00

    Hi @Umair Aslam,

    Thank you for your posting in this community.

    For your questions:

    1.By default, all SharePoint cookies are session cookies. Reference:https://learn.microsoft.com/en-us/sharepoint/authentication#sharepoint-authentication

    As far as I know, it's not allowed to be customized.

    2.Regarding the implementation of a cookie consent banner, SharePoint does not provide a built-in feature for a cookie consent banner.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.