my slim 4 code works with postman, but I get an error when using frontend app using axios. I check CORS and the headings work when tested with curl.
my slim 4 code works with postman, but I get an error when using frontend app using axios. I check CORS and the headings work when tested with curl.
You may try this CORS middleware: