Troubleshooting a 403 error

I get a 403 forbidden error when I try to add a payment gateway on my self-hosted install (v2.4.9.6).

When I hit save at /gateways/create, it 403s. No form verification takes place (i.e. it doesn’t seem to matter which payment type or other inputs I’ve made).

I’ve tried saving all of the other settings page, and this is the only one that’s behaving like this. I don’t see anything in the logs. As far as I can tell, my permissions look OK.

Does anyone have any ideas for next steps?

Hmmm… this is the first I’ve heard of this.

Have you checked both your webserver logs as well as the application logs in storage/logs/laravel.log

Turns out it was a mod_security rule, which explains why only this particular form was setting it off!

Great to hear, thanks for letting us know!