gitment icon indicating copy to clipboard operation
gitment copied to clipboard

网站无法访问了?

Open yiranzai opened this issue 7 years ago • 16 comments

http://imsun.net无法访问 点击login也会报错[object ProgressEvent]

yiranzai avatar Dec 20 '17 03:12 yiranzai

单独访问这个网站 https://gh-oauth.imsun.net/ 然后加入允许。

他的证书失效了

HaoweiCh avatar Dec 20 '17 05:12 HaoweiCh

@Chaaang 你发的这个网站也不能访问,不过http://imsun.net恢复访问了,也不会报错了

yiranzai avatar Dec 21 '17 03:12 yiranzai

现在又不行了呢 点击Login with GitHub 确认之后还是会报错[object ProgressEvent] 我也无法评论别人的gitment

Freezind avatar Dec 29 '17 12:12 Freezind

无语,,这个https签发的有效期有点短吧。

HaoweiCh avatar Dec 30 '17 05:12 HaoweiCh

现在好像不能访问、Error: Not Found

SummerTimes avatar Dec 30 '17 11:12 SummerTimes

同样问题

xuepro avatar Apr 28 '18 10:04 xuepro

由于引入的 gitment.js 中有这样的一段代码:

     _utils.http.post('https://gh-oauth.imsun.net', {
        code: code,
        client_id: client_id,
        client_secret: client_secret
      }, '').then(function (data) {
        _this.accessToken = data.access_token;
        _this.update();
      }).catch(function (e) {
        _this.state.user.isLoggingIn = false;
        alert(e);
      });

请求了一个服务接口,由于这个服务接口是作者自己搭建的,已经停止了。 这里可以直接改为请求 github 认证的接口 _utils.http.post('https://github.com/login/oauth/access_token', {...}

就可以了,不用经过作者的服务

来自 https://github.com/jjeejj/jjeejj.github.io/issues/8

xiaotiandi avatar Sep 22 '18 06:09 xiaotiandi

由于引入的 gitment.js 中有这样的一段代码:

     _utils.http.post('https://gh-oauth.imsun.net', {
        code: code,
        client_id: client_id,
        client_secret: client_secret
      }, '').then(function (data) {
        _this.accessToken = data.access_token;
        _this.update();
      }).catch(function (e) {
        _this.state.user.isLoggingIn = false;
        alert(e);
      });

请求了一个服务接口,由于这个服务接口是作者自己搭建的,已经停止了。 这里可以直接改为请求 github 认证的接口 _utils.http.post('https://github.com/login/oauth/access_token', {...}

就可以了,不用经过作者的服务

来自 jjeejj/jjeejj.github.io#8

还是登不上去

likeApple avatar Sep 29 '18 01:09 likeApple

嗨, 你好, 我这边的github pages原本是可以看到gitment评论框的,但是中途我换了一次畅言,然后再换回来的时候,gitment的评论框死活看不到了, 我从git上回退代码,发现也不行,能否帮忙看看? 这个评论系统折腾了好几天了,还没有折腾起来。 https://github.com/freejared/freejared.github.io

freejared avatar Nov 14 '18 15:11 freejared

由于引入的 gitment.js 中有这样的一段代码:

     _utils.http.post('https://gh-oauth.imsun.net', {
        code: code,
        client_id: client_id,
        client_secret: client_secret
      }, '').then(function (data) {
        _this.accessToken = data.access_token;
        _this.update();
      }).catch(function (e) {
        _this.state.user.isLoggingIn = false;
        alert(e);
      });

请求了一个服务接口,由于这个服务接口是作者自己搭建的,已经停止了。 这里可以直接改为请求 github 认证的接口 _utils.http.post('https://github.com/login/oauth/access_token', {...}

就可以了,不用经过作者的服务

来自 jjeejj/jjeejj.github.io#8

这个我试过,不行,控制台显示

Access to XMLHttpRequest at 'https://github.com/login/oauth/access_token' from origin 'https://shinji3887.github.io' 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.

应该是跨域问题github不让访问,原作者也是考虑到CORS问题所以才设置了一层代理转发

shinji3887 avatar Nov 19 '18 16:11 shinji3887

@shinji3887 @likeApple 您两个的配置没问题吧?不应该呀,我一直在用,没问题。可参考我的博客 https://xiaotiandi.github.io/publicBlog/2018-09-19-d196c9ad.html 里面有配置的链接,我就是照着文中的链接配置完,改下认证的接口https://github.com/login/oauth/access_token就能用了

xiaotiandi avatar Nov 21 '18 03:11 xiaotiandi

@shinji3887 @likeApple 对了,博客底有使用的版本号,您们看看是不是因为这个有影响 “由 Hexo 强力驱动 v3.7.1 | 主题 – NexT.Gemini v6.4.0”

xiaotiandi avatar Nov 21 '18 03:11 xiaotiandi

@xiaotiandi 您还是用的原作者的代理呀,没有改认证的接口。如果改成https://github.com/login/oauth/access_token ,大概率会因为CORS出问题。 2019-01-09 8 43 27

可以使用

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

建议转gitalk,可以兼容之前gitment的评论。

stevenjoezhang avatar Jan 09 '19 12:01 stevenjoezhang

@xiaotiandi 您还是用的原作者的代理呀,没有改认证的接口。如果改成https://github.com/login/oauth/access_token ,大概率会因为CORS出问题。 2019-01-09 8 43 27

可以使用

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

这个方案是可行的

gd4Ark avatar Feb 01 '19 17:02 gd4Ark

@xiaotiandi 您还是用的原作者的代理呀,没有改认证的接口。如果改成https://github.com/login/oauth/access_token ,大概率会因为CORS出问题。 2019-01-09 8 43 27

可以使用

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

这个也不行了。。。

OhIAmFine avatar Aug 01 '19 02:08 OhIAmFine

@OhIAmFine 转Gitalk吧... https://github.com/gitalk/gitalk/issues/39

stevenjoezhang avatar Aug 01 '19 02:08 stevenjoezhang