<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakazawaken1</author_name>
  <author_url>https://blog.hatena.ne.jp/nakazawaken1/</author_url>
  <blog_title>ぷみてく</blog_title>
  <blog_url>https://nakazawaken1.hateblo.jp/</blog_url>
  <categories>
    <anon>play1.2.5</anon>
    <anon>heroku</anon>
    <anon>ssl</anon>
  </categories>
  <description>まず、ローカルで起動した際にHTTPS通信を強制してみます。 コントローラとしてApplicationクラスのみを使っているとして、Applicationクラスに次のメソッドを追加します。 @Before static void before() { if(!request.secure) { int port = Integer.parseInt(Play.configuration.getProperty(&quot;https.port&quot;, &quot;443&quot;)); redirect(&quot;https://&quot; + request.domain + (port == 443 ? &quot;&quot; : &quot;:&quot; + port)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakazawaken1.hateblo.jp%2Fentry%2F20130604%2Fp1&quot; title=&quot;herokuの無料SSL（https://?.herokuapp.com）を使ってHTTPS通信を強制する方法 - ぷみてく&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-06-04 00:00:00</published>
  <title>herokuの無料SSL（https://?.herokuapp.com）を使ってHTTPS通信を強制する方法</title>
  <type>rich</type>
  <url>https://nakazawaken1.hateblo.jp/entry/20130604/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
