Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 2 Jahren
123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | Cookie设置
  13. // +----------------------------------------------------------------------
  14. return [
  15. // cookie 保存时间
  16. 'expire' => 0,
  17. // cookie 保存路径
  18. 'path' => '/',
  19. // cookie 有效域名
  20. 'domain' => '',
  21. // cookie 启用安全传输
  22. 'secure' => false,
  23. // httponly设置
  24. 'httponly' => false,
  25. // 是否使用 setcookie
  26. 'setcookie' => true,
  27. // 跨域header
  28. 'header' => [
  29. 'Access-Control-Allow-Origin' => '*',
  30. 'Access-Control-Allow-Headers' => 'Client-Userid,Authori-zation,Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, Form-type',
  31. 'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
  32. 'Access-Control-Max-Age' => '1728000',
  33. 'Access-Control-Allow-Credentials' => 'true',
  34. 'Access-Control-Expose-Headers' => 'Server'
  35. ],
  36. // token名称
  37. 'token_name' => 'Authori-zation',
  38. ];