OiO.lk Blog PHP How to properly handle a preflight request?
PHP

How to properly handle a preflight request?


I have an API in PHP but preflight requests follow the same code path as normal requests and receives a 400 because of missing body, is it okay to just make an if statement for the OPTIONS request and return a 200? do I need to do anything else?



You need to sign in to view this answers

Exit mobile version