0

The cobalt version is release 11.153, I used the qa version, it can render the http page. But if I use the gold version, it can not render the same http page. I also add the launch parameters --allow_http --csp_mode=disable --ignore_certificate_errors, but it still doesn't work.

So how can I change the launch parameters to launch the http page on gold version?

Thank you very much.

Devin
  • 1
  • 2

2 Answers2

1

The solution is not to "change the launch parameters," but to change the source of the page being loaded to use https for its images. For security reasons, Cobalt gold only supports https, not http, so the images (and any other resource) referenced by the page you're loading must have an https URL.

TomB
  • 61
  • 1
  • 3
0

In Cobalt 11, gold does not respect the parameters "--csp_mode" and "--ignore_certificate_errors" in gold builds. You will need to either use the QA version, improve the web page you are trying to access with CSP support and

Andrew Top
  • 2,517
  • 1
  • 17
  • 10
  • For gold version, how it can support http ? – Devin Aug 27 '18 at 01:43
  • And what could be the reason that images coming from HTTP (instead of HTTPS) are not being displayed in Gold but are displayed in QA. – Devin Aug 27 '18 at 05:22
  • The following CSP header is as bellow: – Devin Aug 27 '18 at 05:23
  • As Andrew said, 'gold' build does not support http connection on purpose for the security reasons. Are you loaing an image from http url while the page itself is https? – Daniel Juyung Seo Aug 29 '18 at 01:53
  • Yes, the page is local, we can visit it by file:///, but for the page's image, it is a http url, so Cobalt can support and display the image. For qa version, it can display the image, but for gold, it can't display the image. – Devin Aug 29 '18 at 06:11
  • I try to remove the parameter "COBALT_FORCE_HTTPS" and "COBALT_FORCE_CSP"at https://cobalt.googlesource.com/cobalt/+/19.lts.stable/src/cobalt/build/config/BUILD.gn#157, but it doesn't work, so how can I config it to support http ? – Devin Sep 03 '18 at 02:42