Hi @Step to IT ,
Welcome to the Microsoft Q&A platform!
It is possible to change the SameSite attribute of a cookie to either Strict or Lax, depending on your needs and the target browser. For example, in Chromium browsers cookies must be treated as SameSite=Lax, and for the modifications you mentioned, they cannot override the cookie attributes generated by the application code. Here is some documentation for your reference:
https://learn.microsoft.com/en-us/aspnet/samesite/system-web-samesite#using-samesite-in-aspnet-472-and-48
https://learn.microsoft.com/en-us/azure/application-gateway/configuration-http-settings#cookie-based-affinity
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".