浏览代码

phantomjs: set web-security to true

bergquist 6 年之前
父节点
当前提交
f7c8d90d1a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pkg/services/rendering/phantomjs.go

+ 2 - 1
pkg/services/rendering/phantomjs.go

@@ -42,7 +42,8 @@ func (rs *RenderingService) renderViaPhantomJS(ctx context.Context, opts Opts) (
 
 	cmdArgs := []string{
 		"--ignore-ssl-errors=true",
-		"--web-security=false",
+		"--web-security=true",
+		"--local-url-access=false",
 		phantomDebugArg,
 		scriptPath,
 		fmt.Sprintf("url=%v", url),