Headless Chrome doesn't redirect

We use mute Chrome to test applications. We have a page that refuses to redirect in headless mode, but redirects fine when it doesn't work without heads. The response header contains the URL to redirect to, and status code 302 is returned.

What can cause Chrome to behave differently when headless? Are there any entries that can help me determine why the redirect does not work as expected?

Edit: Found more information. It seems like I cannot redirect to sites with bad certificates. How can I work with ERR_CERT_AUTHORITY_INVALID when starting Chrome in headless mode?

+5
source share

Source: https://habr.com/ru/post/1271617/


All Articles