<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakakns</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakakns/</author_url>
  <blog_title>ぺーぺーSEのブログ</blog_title>
  <blog_url>https://tanakakns.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>API Gateway</anon>
    <anon>セキュリティ</anon>
    <anon>jQuery</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>CORS(Cross-Origin Resource Sharing)は、ブラウザがオリジン(HTMLを読み込んだサーバ)以外のサーバからデータを取得する仕組み。 各ブラウザにはクロスサイトスクリプティングを防止するために、クロスドメイン通信を拒否する仕組みが実装されている。 特にjQueryなどを用いたAjax通信などを行う際にこれに直面することが多い。 Google Chromeを使用した場合、以下のようなエラーメッセージが出る。 XMLHttpRequest cannot load http://xxx/xxx. No 'Access-Control-Allow-Origin' head…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakakns.hatenablog.com%2Fentry%2F2016%2F02%2F02%2F144143&quot; title=&quot;CORS(Cross-Origin Resource Sharing)について - ぺーぺーSEのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tanakakns/20160202/20160202142804.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-02 14:41:43</published>
  <title>CORS(Cross-Origin Resource Sharing)について</title>
  <type>rich</type>
  <url>https://tanakakns.hatenablog.com/entry/2016/02/02/144143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
