Browse Source

phantomjs: set web-security to true

bergquist 6 năm trước cách đây
mục cha
commit
f7c8d90d1a
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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),