File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Safari 和多数移动端浏览器目前不支持 `credentialless`。
7777 ```
7878
7979- Safari
80-
80+
8181 ``` txt
8282 Cross-Origin-Opener-Policy: same-origin
8383 Cross-Origin-Embedder-Policy: require-corp
@@ -121,11 +121,17 @@ export default defineConfig({
121121 ' Cross-Origin-Resource-Policy' : ' cross-origin' ,
122122 },
123123 },
124- });
124+ })
125125` ` `
126126
127127` vercel .json ` 设置:
128128
129+ ::: warning
130+ [Invalid route source pattern](https://vercel.com/docs/errors/error-list#invalid-route-source-pattern)
131+
132+ The ` source` property follows the syntax from [path-to-regexp](https://github.com/pillarjs/path-to-regexp), not the ` RegExp ` syntax.
133+ :::
134+
129135` ` ` json
130136{
131137 " headers" : [
@@ -207,7 +213,7 @@ export default defineConfig({
207213 尤其是 外部的 CDN资源,CSS, 图片,视频,等资源。
208214
209215 ` ` ` html
210- < img src= " https://example.com/image.jpg" crossorigin= " anonymous" >
216+ < img src= " https://example.com/image.jpg" crossorigin= " anonymous" / >
211217 ` ` `
212218
213219 但是,一些外部资源动态追加的资源无法控制,导致无法加载。比如,百度统计, clarity 统计。
Original file line number Diff line number Diff line change 11{
22 "headers" : [
33 {
4- "source" : " .* \\ /python\\ /.+ \\ . html|.* \\ / python-playground\\ .html$ " ,
4+ "source" : " /:path* /python/:sub*/:file. html|/posts/dev/ python-playground.html" ,
55 "headers" : [
66 {
77 "key" : " Cross-Origin-Embedder-Policy" ,
1818 ]
1919 },
2020 {
21- "source" : " .* \\ /python\\ /.+ \\ . html|.* \\ / python-playground\\ .html$ " ,
21+ "source" : " /:path* /python/:sub*/:file. html|/posts/dev/ python-playground.html" ,
2222 "has" : [
2323 {
2424 "type" : " header" ,
4444 ]
4545 },
4646 {
47- "source" : " .* \\ /python\\ /.+ \\ . html|.* \\ / python-playground\\ .html$ " ,
47+ "source" : " /:path* /python/:sub*/:file. html|/posts/dev/ python-playground.html" ,
4848 "has" : [
4949 {
5050 "type" : " header" ,
You can’t perform that action at this time.
0 commit comments