@0xc/msteams-samesite-compatibility-validator

Validates whether a Teams UserAgent is compatible with SameSite=None cookies

Usage no npm install needed!

<script type="module">
  import 0xcMsteamsSamesiteCompatibilityValidator from 'https://cdn.skypack.dev/@0xc/msteams-samesite-compatibility-validator';
</script>

README

msteams-samesite-compatibility-validator

The Microsoft Teams desktop client is currently using Chromium version 66. This is incompatible with the SameSite=None cookie property that is required for continued used of third-party cookies across websites, as the default in the near future will be to enforce unspecified cookies as first-party only. This is a great bump for security, but due to the issue of the Microsoft Teams client being incompatible with these changes, certain pages might break when updated to work with the new standard. This is a simple function to check the UserAgent provided from MS Teams and determine whether it is incompatible.