imsun / gitment

A comment system based on GitHub Issues.
https://imsun.github.io/gitment/
MIT License
4.06k stars 347 forks source link

网站无法访问了? #102

Open yiranzai opened 6 years ago

yiranzai commented 6 years ago

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

HaoweiCh commented 6 years ago

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

他的证书失效了

yiranzai commented 6 years ago

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

Freezind commented 6 years ago

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

HaoweiCh commented 6 years ago

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

SummerTimes commented 6 years ago

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

xuepro commented 6 years ago

同样问题

xiaotiandi commented 5 years ago

由于引入的 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

likeApple commented 5 years ago

由于引入的 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

还是登不上去

freejared commented 5 years ago

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

shinji3887 commented 5 years ago

由于引入的 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问题所以才设置了一层代理转发

xiaotiandi commented 5 years ago

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

xiaotiandi commented 5 years ago

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

stevenjoezhang commented 5 years ago

@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的评论。

gd4Ark commented 5 years ago

@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 commented 5 years ago

@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"/>

这个也不行了。。。

stevenjoezhang commented 5 years ago

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