{"image_url":null,"author_name":"hokaccha","provider_name":"Hatena Blog","published":"2013-09-24 11:49:17","provider_url":"https://hatena.blog","title":"AngularJS\u306e$http\u306bX-Requested-With\u3092\u3064\u3051\u308b","author_url":"https://blog.hatena.ne.jp/hokaccha/","url":"https://hokaccha.hatenablog.com/entry/20130924/1379990957","width":"100%","height":"190","type":"rich","categories":["AngularJS"],"blog_title":"hokaccha memo","description":"AngularJS\u3067HTTP Request\u3059\u308b\u969b\u306b\u30011.1.1\u3088\u308a\u524d\u307e\u3067\u306fX-Requested-With\u3092\u3064\u3051\u3066\u305f\u3089\u3057\u3044\u3093\u3060\u3051\u3069\u3001CORS\u306epreflight\u3092\u98db\u3070\u3055\u306a\u3044\u305f\u3081\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u524a\u9664\u3057\u305f\u3089\u3057\u3044\u3002 https://github.com/angular/angular.js/issues/1004X-Requested-With\u3092\u3064\u3051\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 myModule.config(function($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpR\u2026","blog_url":"https://hokaccha.hatenablog.com/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20130924%2F1379990957\" title=\"AngularJS\u306e$http\u306bX-Requested-With\u3092\u3064\u3051\u308b - hokaccha memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}