How to post data to my cakephp app from outside?

Read over this: https://book.cakephp.org/3/en/controllers/middleware.html

Also https://github.com/ozee31/cakephp-cors

Also a past topic on cors: Cakephp 4 : CORS [workaround/solved]