[ 'http://localhost:8080', 'http://localhost', ], ]; $cors = new CORSHandler($corsConfig); $cors->handle(); $cors->doPreflight();