2
1

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 3 years have passed since last update.

CakePHP3.8で、フォーム送信時にChrome最新版だと「送信しようとしている情報は保護されません」って警告文が出る

Last updated at Posted at 2020-12-14

環境

  • CakePHP3.8
  • Chrome 87.0.4280.88
  • SSL 導入済みサイト

症状

chrome-notification.png

タイトルの通りで、CakePHP3.8 で作っている SSL サーバ証明書導入済みシステムで、ログイン画面だろうが記事投稿画面だろうが、フォーム送信時に「送信しようとしている情報は保護されません」という警告画面が出るようになりました。ツラい。
先週まではそんなことなかったけど、今日(2020/12/14)、Chrome を最新版に更新してから出るようになりました。

対策

app.php の fullBaseUrl を指定することで解決しました。

config/app.php
//'fullBaseUrl' => false,
'fullBaseUrl' => 'https://hoge.com', # https からのフルパス指定
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?