0

POST &GET method returns expected result.,where as put&delete method returns error in browser. The flow didn't even enter put and delete method blocks in .js file.but all works fine with postman app, in chrome only POST & GET method returns result.

Iswarya r
  • 1
  • 2

1 Answers1

0

You need to allow cors for put and delete method.

set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"

Check this