The Delete request to the endpoint /products/{id} is working fine on the Postman. However, when trying to send a request from the Vue app, it is getting blocked due to the CORS issue. The handler function for the Delete endpoint is available here. And we are trying to call this here.
The Delete request to the endpoint
/products/{id}is working fine on the Postman. However, when trying to send a request from the Vue app, it is getting blocked due to the CORS issue. The handler function for the Delete endpoint is available here. And we are trying to call this here.