Skip to content

cors policy issue #19

@sivakumarkoduru

Description

@sivakumarkoduru

Access to fetch at 'http://127.0.0.1:84/index.php?route=extension/module/d_vuefront/graphql&cors=true' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.

steps to reproduce the issue
add token in catalog/controller/extension/d_vuefront/common/account.php login function.
$token = token(64);
$this->model_account_customer->editToken($customer_info['customer_id'], $token);
return array(
'token' => $token,
'customer'=> array(
'id' => $customer_info['customer_id'],
'firstName' => $customer_info['firstname'],
'lastName' => $customer_info['lastname'],
'email' => $customer_info['email'],
)
);

Now further requests getting above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions