I have published angular 7 with entity framework core application on server but only http POST
method is working other http methods like DELETE
and PUT
throw below error:
Http failure during parsing for " and "Unexpected token < in JSON at position 0
Previously it was working on another server where i published but when I published same application to new server then DELETE
and PUT
methods throw error.
1) I tried given possible solutions like putting "responseType": 'text'
in header
2) Putting "Access-Control-Allow-Methods": "GET, PUT, POST, DELETE, OPTIONS"
in header but nothing has solved the problem