© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
no >> body

IdentityServer antiforgery token bypass

I have an Identity Server instance. One of the application need's to render an identity server pages (login, forgot password, 2fa window, etc.) in the iframe. The problem is that I use an anti-forgery token that prevents all calls since the URL differs.
So I'm thinking about having something like a white list of domains that can bypass forgery token validation.
Are there any built-in solutions for that? Or would appreciate advice about how to implement this logic.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Antiforgery token validation in API's
C#CC# / help
4y ago
Why is the antiforgery token in MS example appending the token only on "/" or "/index/html"
C#CC# / help
16mo ago
❔ WebAPi Project auth with IdentityServer. IDX20803
C#CC# / help
3y ago
❔ how to logout specific user with identityserver
C#CC# / help
4y ago