babalae / bookmarklet

🔖查询原神角色信息的小书签
https://babalae.github.io/bookmarklet/
6 stars 5 forks source link

接口失效了 #3

Closed moeshin closed 2 years ago

moeshin commented 2 years ago
查询失败!TypeError: Failed to fetch

Access to fetch at 'https://api-takumi.mihoyo.com/game_record/app/genshin/api/spiralAbyss?role_id=100000000&schedule_type=1&server=cn_gf01' from origin 'https://bbs.mihoyo.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

GET https://api-takumi.mihoyo.com/game_record/app/genshin/api/spiralAbyss?role_id=100000000&schedule_type=1&server=cn_gf01 net::ERR_FAILED

Access to fetch at 'https://api-takumi.mihoyo.com/game_record/app/genshin/api/index?role_id=100000000&server=cn_gf01' from origin 'https://bbs.mihoyo.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

GET https://api-takumi.mihoyo.com/game_record/app/genshin/api/index?role_id=100000000&server=cn_gf01 net::ERR_FAILED
huiyadanli commented 2 years ago

感谢你的PR,最近没时间测试修改测试这块内容 😂

moeshin commented 2 years ago

感谢你的PR,最近没时间测试修改测试这块内容 😂

刚好看到另一个项目哈哈 Azure99/GenshinPlayerQuery