angular http ajax header

myAppModule.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; }]);
posted @ 2018-01-22 16:54  调调儿  阅读(415)  评论(0)    收藏  举报