Skip to content

Commit

Permalink
fix: Add arguments disabling CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
sirspen committed Aug 23, 2024
1 parent 9a52d39 commit 0c22f13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selenosis/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def create_webdriver(self, *args, **kwargs):
options.add_argument('headless')
options.add_argument('disable-gui')
options.add_argument('no-sandbox')
options.add_argument('disable-web-security')
options.add_argument('--disable-features=IsolateOrigins,site-per-process')
if os.environ.get('DISABLE_DEV_SHM_USAGE'):
options.add_argument('disable-dev-shm-usage')
if os.environ.get('CHROME_BIN'):
Expand Down

0 comments on commit 0c22f13

Please sign in to comment.