Coder Social home page Coder Social logo

Comments (2)

Zxilly avatar Zxilly commented on September 2, 2024

我试了一下

<?php
var_dump(isset($_SERVER['HTTPS']))
?>

得到 bool(false)
这个应该就是问题所在了,但是我不知道为啥

from wp-webauthn.

Zxilly avatar Zxilly commented on September 2, 2024

我拿到了完整的 $_SERVER

array(41) { ["SERVER_SOFTWARE"]=> string(12) "nginx/1.19.3" ["REQUEST_URI"]=> string(21) "/wp-admin/profile.php" ["USER"]=> string(3) "www" ["HOME"]=> string(9) "/home/www" ["HTTP_COOKIE"]=> string(550) "remove for safe" ["HTTP_ACCEPT_LANGUAGE"]=> string(47) "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6" ["HTTP_ACCEPT_ENCODING"]=> string(17) "gzip, deflate, br" ["HTTP_REFERER"]=> string(124) "https://learningman.top/wp-admin/plugin-editor.php?file=wp-webauthn%2Fwwa-functions.php&plugin=wp-webauthn%2Fwp-webauthn.php" ["HTTP_SEC_FETCH_DEST"]=> string(8) "document" ["HTTP_SEC_FETCH_USER"]=> string(2) "?1" ["HTTP_SEC_FETCH_MODE"]=> string(8) "navigate" ["HTTP_SEC_FETCH_SITE"]=> string(11) "same-origin" ["HTTP_ACCEPT"]=> string(124) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ["HTTP_USER_AGENT"]=> string(130) "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51" ["HTTP_UPGRADE_INSECURE_REQUESTS"]=> string(1) "1" ["HTTP_SEC_CH_UA_MOBILE"]=> string(2) "?0" ["HTTP_SEC_CH_UA"]=> string(77) "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Microsoft Edge\";v=\"90\"" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["HTTP_HOST"]=> string(15) "learningman.top" ["PATH_INFO"]=> string(0) "" ["REDIRECT_STATUS"]=> string(3) "200" ["SERVER_NAME"]=> string(15) "learningman.top" ["SERVER_PORT"]=> string(3) "443" ["SERVER_ADDR"]=> string(12) "172.17.59.87" ["REMOTE_PORT"]=> string(5) "56199" ["REMOTE_ADDR"]=> string(14) "118.212.202.63" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["REQUEST_SCHEME"]=> string(4) "quic" ["SERVER_PROTOCOL"]=> string(8) "HTTP/3.0" ["DOCUMENT_ROOT"]=> string(28) "/www/wwwroot/learningman.top" ["DOCUMENT_URI"]=> string(21) "/wp-admin/profile.php" ["SCRIPT_NAME"]=> string(21) "/wp-admin/profile.php" ["CONTENT_LENGTH"]=> string(0) "" ["CONTENT_TYPE"]=> string(0) "" ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(0) "" ["SCRIPT_FILENAME"]=> string(49) "/www/wwwroot/learningman.top/wp-admin/profile.php" ["FCGI_ROLE"]=> string(9) "RESPONDER" ["PHP_SELF"]=> string(21) "/wp-admin/profile.php" ["REQUEST_TIME_FLOAT"]=> float(1620057346.905032) ["REQUEST_TIME"]=> int(1620057346) }

看起来可能是 QUIC 的原因?QUIC 默认就使用加密连接,是否可以添加一个判断?

from wp-webauthn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.