jquery - No 'Access-Control-Allow-Origin' header is present on the requested resource CORS -


i making cross-domain request , options request made browser comes right header:

{     "name": "access-control-allow-origin",     "value": "*" } 

but still post request gets rejected browser.

$.ajax({                         url: url,                         type: 'put',                         headers: {                             "authorization": token                         },                         success: function (resp) {                                                        }                     }); 


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -