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

表单提交请求一直是http #2132

Open
egege opened this issue Aug 21, 2024 · 3 comments
Open

表单提交请求一直是http #2132

egege opened this issue Aug 21, 2024 · 3 comments

Comments

@egege
Copy link

egege commented Aug 21, 2024

  • Laravel Version: 8.22.1
  • PHP Version: 7.4.33
  • Dcat Admin Version: 2.1.2-beta

Description:

虽然我已经将在env里配置ADMIN_HTTPS=true,但提交表单时还是发送http请求。

Steps To Reproduce:

  1. 配置好的.env
APP_URL=https://r-test.111.com.cn
ADMIN_HTTPS=true

并清理掉模板缓存

php artisan view:clear
  1. 页面表单请求还是http
截屏2024-08-21 15 11 36
@sannchii
Copy link

确认admin.php配置中 'https' => env('ADMIN_HTTPS', false) 为相同的

@yi4396
Copy link

yi4396 commented Sep 4, 2024

改配置不是应该执行php artisan config:cache 吗?

@PorygonCN
Copy link
Collaborator

PorygonCN commented Oct 24, 2024

确认一下是否未清除配置缓存 调用php artisan config:clear 清除配置缓存后重新试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants