I am creating a chat bot that lives inside an IFrame on clients' sites. The bot itself uses AJAX to communicate with the .NET Core 2 server.
The problem I have is that while the session is persisted as expected when running the chat bot on its own in a browser, running it in an IFrame causes a new session to be created on each request.
Now, the reason for this is that I am using a session cookie and most browsers do not like this approach when working with Iframes. The regular ASP.NET MVC solution would be to use sessionless cookies, but as with so many other landmines in .NET CORE, cookieless sessions are not supported.
So now I'm stuck and I don't know what to do.