解决神马站长平台无法获取AuthKey

2023年10月26日 · 292 字 · 1 分钟 · Hexo

{% tip ban %}兄弟们,这个方法获取的AuthKey用了两天突然报错了,{% span blue, token illegal %}{% inlineimage https://twikoo-magic.oss-cn-hangzhou.aliyuncs.com/QQ/shuai.gif, height=30 %}。

{
"errorMsg":
  "token illegal",
"returnCode":
  201
}

{% endtip %}


{% tip info %}解决方案参考自神马站长后台无法更新获取Authkey解决方法。{% endtip %}

问题

在使用abnerwei/hexo-url-submission配置主动推送博客到个大搜索引擎的时候,发现神马站长平台无法获取AuthKeyshenma无法获取Authkey

解决方法

  1. 使用{% kbd F12 %}在{% emp head %} 标签内添加以下代码
<meta http-equiv="Content-Security-policy" content="upgrade-insecure-requests">

{% hideToggle 代码插入位置 %}

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Security-policy" content="upgrade-insecure-requests">
    ... 
  </head>
  <body>
    ...
  </body>
</html>

{% endhideToggle %}

  1. 再次点击神马站长平台->数据提交->MIP数据提交 页面的{% kbd 更新 %}按钮,等待几秒钟就会出现你的AuthKey。{% inlineimage https://img95.699pic.com/photo/40128/2651.gif_wh860.gif, height=20px %}