Code Monkey home page Code Monkey logo

Comments (4)

OkayPJ avatar OkayPJ commented on July 21, 2024 1

刚刚试了下应该没问题呀,你试试退出登录再重新登录。

如果还不行,

按F12打开控制台,network,然后评论之后看看这个请求?

image

退出重新登陆后评论正常,谢谢!

from yyetsbot.

BennyThink avatar BennyThink commented on July 21, 2024

刚刚试了下应该没问题呀,你试试退出登录再重新登录。

如果还不行,

按F12打开控制台,network,然后评论之后看看这个请求?

image

from yyetsbot.

OkayPJ avatar OkayPJ commented on July 21, 2024

另一台设备没有重新登录,问题仍然存在。
控制台中,https://yyets.dmesg.app/api/user 显示 401。

HTTP/2 401 Unauthorized
date: Mon, 30 Aug 2021 08:17:10 GMT
content-type: application/json; charset=UTF-8
content-length: 34
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=V72sktwFSDwtfwoVdih%2BQZmyhdNHZjv3mjM4Sm%2F9L62913UrFHKJs5qffo7hAPCRls4bVyJBRwtyvxGEv2U0Xx%2FTxsqy4QTXEXcRW0co14LDX%2Bu5DIF%2B9Np1AHOx4IE33EM%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
strict-transport-security: max-age=15552000; includeSubDomains; preload
server: cloudflare
cf-ray: 686c94c639010ccb-LAX
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400
X-Firefox-Spdy: h2
GET /api/user HTTP/2
Host: yyets.dmesg.app
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate, br
Referer: https://yyets.dmesg.app/resource?id=26326
Connection: keep-alive
Cookie: username=2|1:0|10:1624061704|8:username|8:T2theVBK|a0f0758408aeaaa5285daef01f4210d6e2abefd29441dbb34877260249c1f58a; _ga_K76PSKSSGX=GS1.1.1630311353.1.1.1630311429.0; _ga=GA1.1.345617587.1630311353
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Cache-Control: max-age=0
TE: trailers

https://yyets.dmesg.app/api/comment 显示 403。

HTTP/2 403 Forbidden
date: Mon, 30 Aug 2021 08:17:33 GMT
content-type: text/html; charset=UTF-8
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=MihjmxTNIybkI1mJ%2FsDqZ30L1xlbGcRAa1ZQOpZDWXOlRQZRJqCAztRkgpsK4pd5uPDJPxLkFSwVS85uxXbQ11zdJ2chuMms3WwhXHBralzKkoNqYnjOTfuEehT6M2TxmIQ%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
strict-transport-security: max-age=15552000; includeSubDomains; preload
server: cloudflare
cf-ray: 686c95585ead0ccb-LAX
content-encoding: br
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400
X-Firefox-Spdy: h2
POST /api/comment HTTP/2
Host: yyets.dmesg.app
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate, br
Referer: https://yyets.dmesg.app/resource?id=26326
Content-Type: application/json;charset=utf-8
Content-Length: 81
Origin: https://yyets.dmesg.app
Connection: keep-alive
Cookie: username=2|1:0|10:1624061704|8:username|8:T2theVBK|a0f0758408aeaaa5285daef01f4210d6e2abefd29441dbb34877260249c1f58a; _ga_K76PSKSSGX=GS1.1.1630311353.1.1.1630311453.0; _ga=GA1.1.345617587.1630311353
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
TE: trailers

也不知道有没有什么用……谢谢!

from yyetsbot.

BennyThink avatar BennyThink commented on July 21, 2024

嗯,重新登录就好了。401就是表示你没登录

from yyetsbot.

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.