Skip to content

[Bug]: CORS (Cross-Origin Resource Sharing) error when trying to use Crawl4AI to connect to Twitter. #647

Discussion options

You must be logged in to vote

@alvaro562003 Like @Tauvic suggested, we should add '--disable-web-security' to ignore CORS errors. You can pass this flag through extra_args key in BrowserConfig as follows:

    browser_conf = BrowserConfig(
        headless=False,
        extra_args=['--disable-web-security']
    )

Converting this to Forums, so that others may find this information easily.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by aravindkarnam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants
Converted from issue

This discussion was converted from issue #641 on February 10, 2025 05:26.