From 4a71bfda3b21b05f9b764b50c9e1c68537f7ef2f Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Thu, 27 Oct 2022 10:08:38 +0800 Subject: [PATCH] remove CORS doc --- en/rjs/index.html | 2 -- index.html | 11 +---------- zh/_posts/index.xml | 1 + zh/bookmark/index.html | 1 + zh/index.xml | 4 ++-- zh/rjs/index.html | 2 -- zh/topposts/index.xml | 3 +-- 7 files changed, 6 insertions(+), 18 deletions(-) diff --git a/en/rjs/index.html b/en/rjs/index.html index 04be8ef9..6999a462 100644 --- a/en/rjs/index.html +++ b/en/rjs/index.html @@ -67,8 +67,6 @@ [script name]:[javascript code to return url arrays]

Allow remote js on CSP (Content Security Policy) sites

All remote js (default.rjs) are allowed to execute on CSP sites. Local js files without remote resource access work fine when under the folder "bookmarklet", others needs to be refered in default.rjs as http urls such as "https://local/..." (html5 or offline cache) .

-

Allow CORS (Cross-Origin Resource Share)

-

Put a domain followed by "::" in the file "default.redirect" to allow CORS with the option "resource redirection".

diff --git a/index.html b/index.html index 33185bf8..db7d507e 100644 --- a/index.html +++ b/index.html @@ -1,10 +1 @@ - - - - en/ - - - - - - + diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml index 905e9b10..f908febd 100644 --- a/zh/_posts/index.xml +++ b/zh/_posts/index.xml @@ -124,6 +124,7 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引 Personal use, not for public Personal use 2 网络剪贴板 +txtpad Wait for url from other devices gamezop 分类书签模板 点击以下链接可安装模板至分类书签目录。保存至“小说”类别的网站会自动使用阅读模式。 diff --git a/zh/bookmark/index.html b/zh/bookmark/index.html index 09b7c927..fc06749d 100644 --- a/zh/bookmark/index.html +++ b/zh/bookmark/index.html @@ -51,6 +51,7 @@ Personal use, not for public
Personal use 2
网络剪贴板
+txtpad
Wait for url from other devices
gamezop

分类书签模板

diff --git a/zh/index.xml b/zh/index.xml index 1d8cd732..8c56c6f8 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -303,6 +303,7 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引 Personal use, not for public Personal use 2 网络剪贴板 +txtpad Wait for url from other devices gamezop 分类书签模板 点击以下链接可安装模板至分类书签目录。保存至“小说”类别的网站会自动使用阅读模式。 @@ -412,8 +413,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov 点击安装google翻译、背景图等 远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算): [远程脚本名]:[返回url数组的javascript代码] -其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。 -CORS (Cross-Origin Resource Share)白名单 "default.redirect"文件中放入需要允许的域名,后面再跟两个冒号,表示这个重定向实际上不发生作用。勾写选项“资源重定向”后可无条件允许访问此域名的CORS请求。 +其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。 diff --git a/zh/rjs/index.html b/zh/rjs/index.html index a79ea74f..beeaf41c 100644 --- a/zh/rjs/index.html +++ b/zh/rjs/index.html @@ -72,8 +72,6 @@

远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
[远程脚本名]:[返回url数组的javascript代码]

其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用离线缓存)。此时,js脚本也可使用.link文件方式调用。

-

CORS (Cross-Origin Resource Share)白名单

-

"default.redirect"文件中放入需要允许的域名,后面再跟两个冒号,表示这个重定向实际上不发生作用。勾写选项“资源重定向”后可无条件允许访问此域名的CORS请求。

diff --git a/zh/topposts/index.xml b/zh/topposts/index.xml index 39fbe4f4..64854e9c 100644 --- a/zh/topposts/index.xml +++ b/zh/topposts/index.xml @@ -215,8 +215,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov 点击安装google翻译、背景图等 远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算): [远程脚本名]:[返回url数组的javascript代码] -其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。 -CORS (Cross-Origin Resource Share)白名单 "default.redirect"文件中放入需要允许的域名,后面再跟两个冒号,表示这个重定向实际上不发生作用。勾写选项“资源重定向”后可无条件允许访问此域名的CORS请求。 +其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。