# Mastering Playwright: Ignoring CORS Limitations for Efficient Automation

Add the following options to your Playwright Config to disable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) depending on your usecase.

```javascript
 {
      use: {
        bypassCSP: true, // add this to disable cors
        launchOptions: {
          args: ['--disable-web-security'], // add this to disable cors
        },
      },
    }
```
