* not a valid value for the Access-Control-Allow-Methods response header. You need to specify the actual methods:
response.headers["Access-Control-Allow-Methods"] = "GET, PUT, POST, DELETE"
In addition, if your request has any custom request headers, you will also need to specify them:
response.headers["Access-Control-Allow-Headers"] = "Content-Type, X-Requested-With"
Finally, note that your controller must allow OPTIONS http requests. This allows you to query the preliminary CORS queries that are required when executing PUT or DELETE queries.
monsur
source share