vuefront / opencart

Free PWA & SPA for OpenCart
https://opencart.vuefront.com/
74 stars 26 forks source link

cors policy issue #19

Open sivakumarkoduru opened 4 years ago

sivakumarkoduru commented 4 years ago

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.