Browse Source

Update 2 files

- /_layouts/post.html
- /service.md
mayx 1 year ago
parent
commit
dff8a2d2c9
2 changed files with 5 additions and 2 deletions
  1. 4 2
      _layouts/post.html
  2. 1 0
      service.md

+ 4 - 2
_layouts/post.html

@@ -140,7 +140,8 @@ $.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), f
       owner: 'Mabbs',
       admin: ['Mabbs'],
       id: '{{ page.id }}',      // Ensure uniqueness and length less than 50
-      distractionFreeMode: false  // Facebook-like distraction free mode
+      distractionFreeMode: false,  // Facebook-like distraction free mode
+      proxy: "https://cors-anywhere.mayx.eu.org/?https://github.com/login/oauth/access_token"
     })
   }
   else {
@@ -151,7 +152,8 @@ $.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), f
       owner: 'Mabbs',
       admin: ['Mabbs'],
       id: '{{ page.id }}',      // Ensure uniqueness and length less than 50
-      distractionFreeMode: false  // Facebook-like distraction free mode
+      distractionFreeMode: false,  // Facebook-like distraction free mode
+      proxy: "https://cors-anywhere.mayx.eu.org/?https://github.com/login/oauth/access_token"
     })
   }
 

+ 1 - 0
service.md

@@ -15,4 +15,5 @@ title: Mayx的公开服务
 | GitHub镜像源 | <https://github.mayx.eu.org> | 参考[gh-proxy](https://github.com/hunshcn/gh-proxy) |
 | Pixiv图片代理 | <https://pixiv.mayx.eu.org> | 参考[Pixiv圖片代理](https://pixiv.cat/reverseproxy.html) |
 | jsproxy | <https://jsproxy.mayx.eu.org> | 参考[jsproxy](https://github.com/EtherDream/jsproxy) |
+| CORS代理 | <https://cors-anywhere.mayx.eu.org> | 参考[cloudflare-cors-anywhere](https://github.com/Zibri/cloudflare-cors-anywhere) |
 | Pixiv图片索引API | <a href="{% unless site.github %}https://mabbs.github.io{% endunless %}/pixiv-index/">https://mabbs.github.io/pixiv-index/</a> | 参考[pixiv-index](https://github.com/Mabbs/pixiv-index) |