silverstripe cli-script.php myurl flush=1 not working

Verison 3.7.7:

Question:
i try to flush using silverstripe cli, using ./framework/cli-srcript.php http://localhost flush=1
i try in my local it work perfectly, but on server it doesn’t work when i try add new allowed_allowed action always return 404.
my local env php 7.4.23 ubuntu 20.04
my server env php 7.4.22 centos 7

Details of your query go here

// Include any relevant code. If you have a lot of code, link to a gist instead.