I need to automate an app installation, but first I need to log in Shopify account. I have got a ‘403 Forbidden’ status when I try to enter this page in my test browser: http://www.shopify.com/login/
. When I do it manually it is okay
This is the error:
I wrote it in my config json:
"include":
"baseUrl": "http://www.shopify.com/login",
"chromeWebSecurity": false
This in my tests:
cy.visit('http://www.shopify.com/login', ) {
headers: {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36'
}
});
failOnStatusCode: false
This didn’t help, I still have got this error. Does anybody knows hoe to handle this?