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
I have much on my plate right now, but I guess I can do it in the next few weeks if no one does it before me 😄 Just an idea: Maybe it's a good idea not to inline this into the app.html, but rather as an additional initial-state.js script that is required on every generated page?
This way, we do not a feature flag for this.
@antfu@tshemeng I created a PR #67. It extracts the initialState script to an asset file and avoid the inline script. As I mentioned earlier, this should both prevent a feature flag to toggle the initialState feature and respect CSP.
我使用
vite-ssg
生成.html,然后打包为浏览器扩展,在feat: Add Initial State
这个commit之后,vite-ssg
会在生成的.html文件末尾插入一段inline script
,这会触发浏览器CSP错误,因为浏览器认为扩展中存在inline script
是不安全的,是否可以添加选项选择是否启用这个特性呢The text was updated successfully, but these errors were encountered: