Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「ログイン状態を保存する」で発行されるcookieが httpsサイトでもSecure属性が trueにならない #1897

Open
kaburk opened this issue Mar 10, 2023 · 0 comments
Labels
Bug バグ Ver4 バージョン4

Comments

@kaburk
Copy link
Collaborator

kaburk commented Mar 10, 2023

概要

管理側ログイン画面にて「ログイン状態を保存する」にチェックを入れてログインするとcookieが発行されるが、
httpsのサイトでもSecure属性が trueにならない状態でした。

下記 https://trial.basercms.net/ での例

スクリーンショット 2023-03-10 17 24 19

対策

lib/Baser/Controller/UsersController.php
の処理で
$this->Cookie->httpOnly = true;
としているところで
$this->Cookie->secure = true;
の指定も必要と思われます。

baserCMS version :

baserCMS4系(おそらく全部)

@gondoh gondoh added the Bug バグ label Mar 16, 2023
@ryuring ryuring added the Ver4 バージョン4 label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ Ver4 バージョン4
Projects
None yet
Development

No branches or pull requests

3 participants