I am following the guide here https://docs.statamic.com/addons/classes/controllers and I want to implement a post request handler. When I send request to /!/Foo/barBaz with GET request [email protected] gets called. But when I send request to /!/Foo/barBaz with POST request it says Your session has expired. and forwards me to login page.

I thought I can make POST requests to controller without need for cp login.

What am I doing wrong?