_Token was not found issue

I am using Authentication.Authentication component for Admin login using version Cake 4.4.

For a select box update I am using a ajax function. for the allow action below code is


But still I receiving an error below.

Error: _Token.fields was not found in request data.

Please help me to resolve this issue.

You seem to be using FormProtection and/or SecurityComponent.

This will most likely be the cause why that error is present because you update your select box via ajax.

Easiest solution would be to unlock that specific field like the docs describe.