发现这个metabase真的是很神奇,从github上原封不动download的代码,push到gitlab上,然后再从gitlab上clone下来想在本地执行,始终是没办法执行,比对了代码也是一模一样的。
报的错是:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://maps.google.com https://apis.google.com https://www.google-analytics.com https://*.googleapis.com *.gstatic.com localhost:8080 'sha256-JQDbp3Mhu24XN1+s9uU0HkmkcixHffMicidPncBvl44=' 'sha256-th95qRHdfM3L4RZBzA4kCzxGwFYlM995AM5Jk99o8lI=' 'sha256-9BXohtg6TyBdzvQQ5FFJDMsrtNBx3p29yA8VDrZuug0='". Either the 'unsafe-inline' keyword, a hash ('sha256-lMAh4yjVuDkQ9NqkK4H+YHUga+anpFs5JAuj/uZh0Rs='), or a nonce ('nonce-...') is required to enable inline execution.
求救大神。
博主在尝试部署Metabase时遇到ContentSecurityPolicy错误,详细描述了从GitHub下载代码并推送到GitLab,再克隆回本地执行的过程中的问题。错误信息显示内联脚本因安全策略被拒绝执行,寻求解决方案。
4842

被折叠的 条评论
为什么被折叠?



