I have a situation where I want the asp.net framework 4.8 site to be able to do three things:
- Use multiple tabs in the same browser with different sessions in each tab.
- Email registration links to work.
- Allow Webhooks to work (from Stripe)
I cobbled together a solution which I will post here. The question I have is if anyone can offer feedback on this solution. Is this problematic in some way I am not foreseeing? The solution is in the answer section below.
I'm hoping this makes sense, and doesn't introduce some atrocious vulnerability. But given my requirements, it works, and I'm not seeing any issues with it from a functionality or feature perspective. Any thoughts on this are greatly appreciated. I also wanted to post this here in case this may be of any use to others. I had a hard time finding information on this, and any proposed solution, and so cobbled this together from hints I found in various places, but in particular StackOverflow. Thanks.
In web config have this:
In the Global.asax have this: