`--disable-web-security` seems does not work
See original GitHub issueI have a context
const browser = await playwright['chromium'].launch({
args: [
'--disable-web-security', //Don't enforce the same-origin policy. (Used by people testing their sites - https://peter.sh/experiments/chromium-command-line-switches)
],
headless: false
});
const page = await browser.newPage()
await page.goto('https://host.com/frames.html')
iframes.html
<html>
<head>
<title>Frames</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<frameset cols="50%, 50%">
<frame src="https://anotherhost.com"/>
</frameset>
</html>
=> the https://anotherhost.com does not load in the frame, do you have any idea?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Does --disable-web-security Work In Chrome Anymore?
With the current Chrome it doesn't matter. I am browsing with enabled security while e2e testing with disabled security in a different window...
Read more >575690 - `--disable-web-security` works with an empty value ...
Perform an AJAX request to another domain which doesn't support CORS. 3. Chrome blocks the request. What is the expected behavior? Chrome should ......
Read more >v81 breaks dev using --disable-web-security - Google Help
Latest Canary releases appear to have dropped support for the command line param "--disable-web-security" , in fact, it stopped working a ...
Read more >disable-web-security to Firefox developer options to globally ...
For bugs in Firefox DevTools, the developer tools within the Firefox web browser. This includes issues about the user interface of the toolbox,...
Read more >disable the warning 'You are using an unsupported command ...
chrome --kiosk --disable-web-security abc.htm ... The security is not a concern as my system as it is only being connected to a private...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@yusoof-pret and @rohithbb433
To set this within the
playwright.config.tsfile, I believe it will look like:Even I have this doubt. Can someone suggest how we can disable it in playwright.config.ts file