{"id":141,"date":"2014-12-11T07:41:27","date_gmt":"2014-12-10T22:41:27","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/12\/11\/angularjs-xdomain-for-ie9"},"modified":"2022-10-28T21:28:01","modified_gmt":"2022-10-28T12:28:01","slug":"angularjs-xdomain-for-ie9","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/12\/11\/angularjs-xdomain-for-ie9\/","title":{"rendered":"xdomain.js\u3092\u6d3b\u7528\u3057\u3066AngularJS\u3067IE9\u306eCORS\u5bfe\u5fdc\u3092\u884c\u3046"},"content":{"rendered":"

\u4eca\u5e74\u306b\u5165\u3063\u3066\u304b\u3089\u66f8\u985e\u306e\u3084\u308a\u53d6\u308a\u3067\u5c01\u7b52\u306e\u5b9b\u540d\u66f8\u304d\u304c\u5927\u5e45\u306b\u5897\u3048\u3001\u624b\u66f8\u304d\u306b\u9650\u754c\u3092\u611f\u3058\u3001\u30c6\u30d7\u30e9Grand WR1000\u3092\u5c0e\u5165\u3057\u305f\u306e\u306f\u826f\u304b\u3063\u305f\u3082\u306e\u306e\u3001\u30c9\u30e9\u30a4\u30d0\u30fc\u304cYosemite\u5bfe\u5fdc\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u30e9\u30d9\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u3001\u90fd\u5ea6VirtualBox\u3067Windows\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3044\u308b\u4ee3\u8868\u306e\u56fd\u672c\u3067\u3059\u3002<\/p>\n

Internet Explorer(\u901a\u79f0IE)\u3002Web\u696d\u754c\u306b\u643a\u308f\u308b\u4eba\u9593\u3067\u3042\u308c\u3070\u3001\u3053\u306eIE\u306b\u60a9\u307e\u3055\u308c\u308b\u3053\u3068\u306f\u5ea6\u3005\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3002\u4eca\u56de\u306fAngularJS\u3067IE9\u306eCORS(Cross-Origin Resource Sharing)\u5bfe\u5fdc\u3092\u884c\u3046\u65b9\u6cd5\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

IE9\u3067\u306eCORS\u306b\u3064\u3044\u3066<\/h2>\n

\u5468\u77e5\u306e\u901a\u308a\u3001IE9\u3067\u306fXMLHttpRequest\u306b\u3088\u308bCORS\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u3089\u305a\u3001IE9\u3067Ajax\u901a\u4fe1\u3092\u884c\u3044\u3001\u304b\u3064\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408(\u3044\u308f\u3086\u308b\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u901a\u4fe1)\u3001IE\u72ec\u81ea\u306eXDomainRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5229\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u3057\u304b\u3057AngularJS\u3067\u306f\u3001IE\u72ec\u81ea\u306eXDomainRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u3089\u305a\u3001resource\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u3067RESTful\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9API\u3068\u306e\u901a\u4fe1\u3092\u5b9a\u7fa9\u3057\u3066\u3082\u3001\u6b8b\u5ff5\u306a\u3053\u3068\u306bIE9\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n

xdomain.js\u306e\u6d3b\u7528<\/h2>\n

\u4e0a\u8ff0\u306e\u901a\u308a\u3001\u7d20\u306e\u72b6\u614b\u3067\u306fIE9\u3067\u306e\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u901a\u4fe1\u304c\u884c\u3048\u306a\u3044\u305f\u3081\u3001\u4eca\u56de\u306f **xdomain.js<\/a>**\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3066\u3001\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u901a\u4fe1\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n

xdomain.js<\/a>**\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001<\/strong>AngularJS\u3084API\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30b3\u30fc\u30c9\u306b\u624b\u3092\u52a0\u3048\u308b\u3053\u3068\u7121\u304f**\u3001IE9\u3067\u306e\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u901a\u4fe1\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n

xdomain.js\u3067\u306fMaster\u30c9\u30e1\u30a4\u30f3<\/strong>\u3068Slave\u30c9\u30e1\u30a4\u30f3<\/strong>\u3068\u3044\u3046\u6982\u5ff5\u304c\u3042\u308a<\/p>\n