Answers for "header disallowed by preflight response in express"

0

header disallowed by preflight response in express

$app->after(function (Request $request, Response $response) {
        $response->headers->set('Access-Control-Allow-Origin', '*');
        $response->headers->set("Access-Control-Allow-Credentials", "true");
        $response->headers->set("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
        $response->headers->set("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");
    });
Posted by: Guest on October-03-2021

Code answers related to "header disallowed by preflight response in express"

Code answers related to "Javascript"

Browse Popular Code Answers by Language