I'm trying to login to my dvd.netflix account using Selenium Python but I keep getting incorrect login information (despite entering the correct username and password) because the auth request failed due to cors error.
This is the code I'm using:
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get('https://dvd.netflix.com/SignIn')
username_input = '//*[@id="email"]'
password_input = '//*[@id="password"]'
login_submit = '//*[@id="signin"]/button'
driver.find_element_by_xpath(username_input).send_keys("justtest0219@gmail.com")
driver.find_element_by_xpath(password_input).send_keys("12345")
driver.find_element_by_xpath(login_submit).click()
The error I get:
Access to XMLHttpRequest at 'https://portal.dvd.netflix.com/auth/authenticate' from origin 'https://dvd.netflix.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I also tried to disable CORS Check but still can't login, If I try to login manually with WebDriver for Chrome it does login