Comments (2)
我试了一下
<?php
var_dump(isset($_SERVER['HTTPS']))
?>
得到 bool(false)
这个应该就是问题所在了,但是我不知道为啥
from wp-webauthn.
我拿到了完整的 $_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)
- WP-WebAuthn breaks the Reset Password page HOT 5
- The extension "Sodium" is not available. Please install it to use this method. HOT 1
- Disable the need for gmp extension HOT 5
- Login fail HOT 1
- Auth failed (if not using an incognito browser session) HOT 6
- WP Network Support HOT 7
- Login shortcode and gutenberg block not working HOT 6
- Vivaldi browser and Bitwarden HOT 2
- Problems with login HOT 4
- Disable Username Field HOT 1
- Login failing with "Auth failed" but log showing everything is ok? HOT 3
- Preferred login method
- Login Fails but Authenticator Verification Works HOT 3
- Unable to Log In HOT 1
- Can't register new key with BitWarden addon on Chrome HOT 1
- Can't add 2 fingerprint authenticator HOT 4
- Feature request - Support word WordPress multi-site
- Rename variable $user_info to $user HOT 3
- I moved my site to another server, webauth stopped working. HOT 7
- Android Re-auth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-webauthn.