Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cors policy issue #19

Open
sivakumarkoduru opened this issue Jun 28, 2020 · 0 comments
Open

cors policy issue #19

sivakumarkoduru opened this issue Jun 28, 2020 · 0 comments

Comments

@sivakumarkoduru
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant