6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

httpsからhttpへリファラーを渡す方法

Posted at

リファラーを使って、ちょっとした処理を追加しようと思ったら、
httpsからhttpへはリファラーを渡せない

15.1.3 Encoding Sensitive Information in URI's

そこで、HTMLのmetaで下記を指定すると、

<meta name="referrer" content="unsafe-url">

うまく言った。

参考文献A

でも、最新のブラウザ(Chrome、FF)しか対応していない。
(safariもダメでした)By 2015/06/30

なので、汎用的な方法として、
海外文献より、リダイレクトを使用してリファラーを渡す方法も合わせて載せておきます。

参考文献B

I was able to set up a link from an HTTPS page to a HTTP page on another domain and still pass the first page's URL as a referrer using the following technique.

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?