ecommerce-frontend | The frontend of the ecommerce app | Ecommerce library
kandi X-RAY | ecommerce-frontend Summary
kandi X-RAY | ecommerce-frontend Summary
The frontend of the ecommerce app. Here's the backend:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ecommerce-frontend
ecommerce-frontend Key Features
ecommerce-frontend Examples and Code Snippets
Community Discussions
Trending Discussions on ecommerce-frontend
QUESTION
I am trying to connect to a Lumen backend api from a vue frontend app. But I would like to do it without exposing the backend api port, so it would all be handled internally. The reason I want this is because some endpoints of the api are public, and for now as its a small application I don't want to worry about anyone calling the api externally.
For the backend api I am using nginx.
I already added a Middleware to enable CORS in Lumen, and enabled CORS in nginx This is how my docker-compose.yml file looks:
...ANSWER
Answered 2020-Nov-02 at 21:10It is the vue.js dev server that returns the CORS error as you are running your frontend in dev mode:
command: npm run serve
You can solve this easily by using the proxy property in the vue js config.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ecommerce-frontend
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page