Bumblebee icon indicating copy to clipboard operation
Bumblebee copied to clipboard

使用代码设置 HttpOptions.StaticResurceType 对 woff 和 ttf 不起作用

Open eddyyuen opened this issue 5 years ago • 0 comments

代码设置 StaticResurceType: g = new Gateway(); g.HttpOptions(options => { options.StaticResurceType = "txt;xml;zip;jpg;css;png;htm;woff;svg;gif;woff2;js;html;jpeg;ico;rar"; } g.Open(); woff 文件显示 403错误。 GET http://..../__system/layuiadmin/layui/font/iconfont.woff?v=230 net::ERR_ABORTED 403 (No permission) 如果使用 HttpConfig.json 则一切正常。

看了代码,只有在实例化HttpApiServer时才会初始化,后续设置StaticResurceType并不会起作用。

eddyyuen avatar Oct 25 '19 05:10 eddyyuen