Jump to content

AntiForgery with ASPX Webmethods


saichinnu1852

Recommended Posts

I am implementing AntiForgery into a WebApplication. Whilst I know this works server side using the AntiForgery Library by adding a hidden element and then validating it on a master page event, we have hundreds of ASPX Page WebMethods to consider when it comes to client side implementation with jQuery or reactJs.

Is there a way of creating a filter to tag onto WebMethods that does an AntiForgery check?

Link to comment
Share on other sites

1 hour ago, saichinnu1852 said:

I am implementing AntiForgery into a WebApplication. Whilst I know this works server side using the AntiForgery Library by adding a hidden element and then validating it on a master page event, we have hundreds of ASPX Page WebMethods to consider when it comes to client side implementation with jQuery or reactJs.

Is there a way of creating a filter to tag onto WebMethods that does an AntiForgery check?

Create custom attribute

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...