alexschimpf / Snkrs-Bot

Selenium bot for Nike Snkrs site
The Unlicense
843 stars 290 forks source link

CORS policy error #62

Open Dives44 opened 3 years ago

Dives44 commented 3 years ago

Hi, when I try to launch the script I get in the console:

Access to XMLHttpRequest at 'https://unite.nike.com/login?appVersion=865&experienceVersion=865&uxid=com.nike.commerce.nikedotcom.web&locale=en_US&backendEnvironment=identity&browser=Google%20Inc.&os=undefined&mobile=false&native=false&visit=1&visitor=6c7818ed-ba3b-4e45-acde-1f85cb79efce' from origin 'https://www.nike.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Here is my command:

python main.py --username myemail@gmail.com --password mypassword --url https://www.nike.com/launch/t/air-max-95-ndstrkt-black --shoe-size 11 --shoe-type M --cvv 001 --shipping-option STANDARD --driver-type chrome --page-load-timeout 10

Can you help me ?