summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--_layouts/post.html6
-rw-r--r--service.md1
2 files changed, 5 insertions, 2 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 6d353f2..c86b6ef 100644
--- a/_layouts/post.html
+++ b/_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"
     })
   }
 
diff --git a/service.md b/service.md
index 661e581..3103288 100644
--- a/service.md
+++ b/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) |
\ No newline at end of file