ITの隊長のブログ

ITの隊長のブログです。Rubyを使って仕事しています。最近も色々やっているお(^ω^ = ^ω^)

【JavaScript】はてぶのAPIにAjaxしてエラー「XMLHttpRequest cannot load http://b.hatena.ne.jp/aipacommander/rss?5215206181. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.」

スポンサードリンク

凄い長いエラーどすな

XMLHttpRequest cannot load http://b.hatena.ne.jp/aipacommander/rss?5215206181. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

AjaxのクロスドメインNGのやつですね。そういえばローカルで他APIAjaxで叩くと起こり得るねこれ。

はいはい。jsonpjsonp

あ、無理でした。はてなブックマークapiが対応していない。。。

え、どうすべ。。。。

d.hatena.ne.jp

探したら見つかりました。

ありがとうございますm(_ _ )m

対応したらできました。よかった。