Jelajahi Sumber

phantomjs: set web-security to true

bergquist 6 tahun lalu
induk
melakukan
f7c8d90d1a
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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{
 	cmdArgs := []string{
 		"--ignore-ssl-errors=true",
 		"--ignore-ssl-errors=true",
-		"--web-security=false",
+		"--web-security=true",
+		"--local-url-access=false",
 		phantomDebugArg,
 		phantomDebugArg,
 		scriptPath,
 		scriptPath,
 		fmt.Sprintf("url=%v", url),
 		fmt.Sprintf("url=%v", url),