<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba-yan</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba-yan/</author_url>
  <blog_title>しばやん雑記</blog_title>
  <blog_url>https://blog.shibayan.jp/</blog_url>
  <categories>
    <anon>ASP.NET</anon>
  </categories>
  <description>タイトルの通りですが、ASP.NET MVC を使って SSL が必須のページを実装するのには RequireHttps 属性が便利ですね。しかし、この属性は GET 以外のリクエストが来ると無条件で例外を投げるようになってます。例えば HEAD リクエストを投げてみると 500 が返ってきます。実際にコードを見てみると GET 決め打ちのコードとなってます。 // only redirect for GET requests, otherwise the browser might not propagate the verb and request // body correctly. i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayan.jp%2Fentry%2F20141117%2F1416195557&quot; title=&quot;ASP.NET MVC の RequireHttps 属性は GET 以外の場合には例外を投げるので注意 - しばやん雑記&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/s/shiba-yan/20141117/20141117123133.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-11-17 12:39:17</published>
  <title>ASP.NET MVC の RequireHttps 属性は GET 以外の場合には例外を投げるので注意</title>
  <type>rich</type>
  <url>https://blog.shibayan.jp/entry/20141117/1416195557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
