You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/main.js:1
Failed to load resource: the server responded with a status of 403 (Forbidden)
/vite.svg:1
Failed to load resource: the server responded with a status of 403 (Forbidden)
请问该如何调整该规则以不要转义 / 为 %2F 呢?
Version [3.7.1 pro]
The text was updated successfully, but these errors were encountered:
使用情景如下:
为OSS存储策略配置存储路径为
{uid}/{path}
然后在根目录OSS中上传photo.jpg图片,选择获取外链,得到:
https://www.example.com/1%2FOSS%2Fphoto.jpg...
本应该是
https://www.example.com/1/OSS/photo.jpg...
如果只是图片还好,但我要直链的原因是在oss托管了静态的html文件,如果url中的
/
被转义,就会导致相对路径识别出错,直接到顶层路径了。例如,
https://www.example.com/1/OSS/vuepress/index.html
中的svg
和js
都在 二级 目录下,URL中的
/
被转义为%2F
后,https://www.example.com/1%2FOSS%2Fvuepress%2Findex.html
虽然也可以直接访问index.html
,但会导致index.html
里的svg
与js
文件请求路径变成一级目录路径。请问该如何调整该规则以不要转义
/
为%2F
呢?The text was updated successfully, but these errors were encountered: