Skip to content

Commit

Permalink
fix: replace proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
booxood committed Mar 3, 2021
1 parent 6ed8c5b commit 68786ee
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion readme-cn.md
Expand Up @@ -182,7 +182,7 @@ import GitalkComponent from "gitalk/dist/gitalk-component";

- **proxy** `String`

Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`.
Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`.

GitHub oauth 请求到反向代理,为了支持 CORS。 [为什么要这样?](https://github.com/isaacs/github/issues/330)

Expand Down
2 changes: 1 addition & 1 deletion readme-zh.md
Expand Up @@ -177,7 +177,7 @@ import GitalkComponent from "gitalk/dist/gitalk-component";

- **proxy** `String`

Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`.
Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`.

GitHub oauth 請求到反向代理,為了支持 CORS。 [為什麼要這樣?](https://github.com/isaacs/github/issues/330)

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -182,7 +182,7 @@ And use the component like

- **proxy** `String`

Default: `https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token`.
Default: `https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token`.

GitHub oauth request reverse proxy for CORS. [Why need this?](https://github.com/isaacs/github/issues/330)

Expand Down
2 changes: 1 addition & 1 deletion src/gitalk.jsx
Expand Up @@ -60,7 +60,7 @@ class GitalkComponent extends Component {
pagerDirection: 'last', // last or first
createIssueManually: false,
distractionFreeMode: false,
proxy: 'https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token',
proxy: 'https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token',
flipMoveOptions: {
staggerDelayBy: 150,
appearAnimation: 'accordionVertical',
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -136,7 +136,7 @@ declare namespace Gitalk {
* GitHub oauth request reverse proxy for CORS.
* [Why need this?](https://github.com/isaacs/github/issues/330)
*
* @default "https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token"
* @default "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token"
*/
proxy?: string;

Expand Down

0 comments on commit 68786ee

Please sign in to comment.