This project is read-only.

Disable validating verification token per action / controller

Topics: Core
Mar 29, 2012 at 12:45 PM

I'm looking for a way to disable the verification token validation on a specific action or controller (either will do)

Anyone know how to do it? Core hacks are OK too!

Do take note, that I do not want to disable the validation on the whole module, just on a specific action / controller.

Apr 2, 2012 at 10:10 AM

I went ahead and added in a core hack.

Now I can attach a IgnoreAntiForgeryTokenOrchardAttribute to either an action or controller to force-ignore the token validation :)