Could you please let me know how can we check the origin header server-wide in IIS to prevent CSRF through the configuration change only without adding a custom HTTP module in IIS?
Check the origin header server-wide in IIS to prevent CSRF through the IIS configuration change Only
Asked
Active
Viewed 507 times
2
1 Answers
0
get a variable out of 'Host' 'Core' https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1
get the cfg domain, from within server https://stackoverflow.com/questions/40020135/how-to-get-the-current-domain-name-in-startup-cs
I'm unsure how it will look like in code yet. I'm guessing u don't want to add anything to bin directory.
to check client get IP https://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net
New chrome and Firefoxes and Edge will do check for your, but old ones, its up to your Javascript and C# to do the rest I think.
Georgiy Chipunov
- 1
- 1
/logout), those might not send the Origin header even in newer browsers. – CBHacking May 03 '21 at 10:04