“Laravel”的版本间的差异

来自YS的笔记
跳到导航 跳到搜索
(创建页面,内容为“ * https://github.com/fideloper/TrustedProxy fideloper/proxy使用HTTPS,nginx反向代理时静态资源一直是HTTP的问题 配置好后,修改 <nowik…”)
 
第7行: 第7行:
 
  <nowiki>
 
  <nowiki>
 
'proxies' => '*'</nowiki>
 
'proxies' => '*'</nowiki>
 +
 +
* cookie不加密
 +
 +
<code>App\Http\Middleware\EncryptCookies</code>设置白名单<code>except</code>

2019年5月11日 (六) 21:32的版本


  • [fideloper/proxy]使用HTTPS,nginx反向代理时静态资源一直是HTTP的问题

配置好后,修改

'proxies' => '*'
  • cookie不加密

App\Http\Middleware\EncryptCookies设置白名单except