-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I enable disable web security flag in playwright.config.ts #15757
Comments
@rohithbb433 Pass // playwright.config.ts
import { type PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
// Put your chromium-specific args here
args: ['--disable-web-security'],
},
},
},
],
};
export default config; Let me know if that doesn't work for you. |
Thank you @dgozman |
Thank you @dgozman :) |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need help in setting --disable-web-security flag in playwright.config.ts. Can someone pls help me on this.
The text was updated successfully, but these errors were encountered: