I am making an automation of an AngularJS website and I need to run Selenium Chrome Driver with Protractor headless. The problem is that i'm getting this error in terminal:
Mixed Content: The page at 'https://x.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://y.com'. This request has been blocked; the content must be served over HTTPS.
I tried to use some Chrome args in the code below but it was unsuccessful. However, if I remove the headless arg, it works.
capabilities: {
browserName: 'chrome',
acceptInsecureCerts : true,
acceptSslCerts : true,
chromeOptions: {
args: [
'--headless',
'--disable-gpu',
'--remember-cert-error-decisions',
'--ignore-certificate-errors',
'--reduce-security-for-testing',
'--allow-running-insecure-content',
'--window-size=800,600'
]
},
},