google-chrome

Cypress throwing SecurityError

孤街浪徒 提交于 2020-08-24 06:59:00
问题 I am currently running with Chrome 74 and trying to use Cypress to test a style-guide in my app. When I load up Cypress it throws this error: SecurityError: Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame. Please let me know if there is a solution to this! I had tried to follow along with this: https://github.com/cypress-io/cypress/issues/1951 But nothing has changed/worked for me. :( My code is shown below: cypress/plugins/index.js module.exports = (on

Cypress throwing SecurityError

眉间皱痕 提交于 2020-08-24 06:58:48
问题 I am currently running with Chrome 74 and trying to use Cypress to test a style-guide in my app. When I load up Cypress it throws this error: SecurityError: Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame. Please let me know if there is a solution to this! I had tried to follow along with this: https://github.com/cypress-io/cypress/issues/1951 But nothing has changed/worked for me. :( My code is shown below: cypress/plugins/index.js module.exports = (on

Chrome webRequest listening to only user entered URLs

吃可爱长大的小学妹 提交于 2020-08-23 06:14:54
问题 I'm making a Chrome extension that only allows users to access websites that are on a given whitelist. chrome.webRequest.onBeforeRequest is perfect for intercepting and examining the URLs but the problem I am having is that it examines all incoming URLs including when a webpage is trying to load resources. I want it to only examine user entered URLs and if that URL is on the whitelist I want it to allow that webpage to load any resources it needs, regardless of if they are on the whitelist or

Chrome webRequest listening to only user entered URLs

流过昼夜 提交于 2020-08-23 06:14:10
问题 I'm making a Chrome extension that only allows users to access websites that are on a given whitelist. chrome.webRequest.onBeforeRequest is perfect for intercepting and examining the URLs but the problem I am having is that it examines all incoming URLs including when a webpage is trying to load resources. I want it to only examine user entered URLs and if that URL is on the whitelist I want it to allow that webpage to load any resources it needs, regardless of if they are on the whitelist or

Response Cookie not getting set by Chrome & IE

巧了我就是萌 提交于 2020-08-22 05:32:26
问题 I'm trying to figure out why Chrome (26.0.1410.64) and IE10 don't seem to recognize the cookie I set in my response from an ASP.NET Web API controller. Here is the situation: I have a drop-down menu login form on my page that makes an ajax call to my Web API method (via HTTP POST) and that Web API method returns some JSON data and also sets a cookie in the response (using the HTTP headers). It works perfectly in Firefox and Safari (so, WebKit) but not in Chrome or IE. Chrome and IE appear to

Is it possible debug iOS Chrome on Windows 10?

青春壹個敷衍的年華 提交于 2020-08-22 05:11:48
问题 As the title says, I need to debug a website opened with mobile Chrome on an iOS device (iPod, iPad etc.) on Windows 10. I have successfully set up iOS Safari debugging on Windows 10 via Chrome DevTools (GitHub repo , helpful comment). I would love to do the same thing except with Chrome or Firefox and not Safari. Is it even possible? 回答1: Yes it is. You'll need node first and (web inspector enabled on iOS>Settings>Safari) then... Install weinre sudo npm -g i weinre (or) npm i -g weinre Run

Is it possible debug iOS Chrome on Windows 10?

一笑奈何 提交于 2020-08-22 05:11:00
问题 As the title says, I need to debug a website opened with mobile Chrome on an iOS device (iPod, iPad etc.) on Windows 10. I have successfully set up iOS Safari debugging on Windows 10 via Chrome DevTools (GitHub repo , helpful comment). I would love to do the same thing except with Chrome or Firefox and not Safari. Is it even possible? 回答1: Yes it is. You'll need node first and (web inspector enabled on iOS>Settings>Safari) then... Install weinre sudo npm -g i weinre (or) npm i -g weinre Run

Selenium: Clear chrome cache

放肆的年华 提交于 2020-08-22 04:53:38
问题 In my application I need a way to clear only the cache of the chrome browser before log out (except cookies - I do not want to delete cookies). Can any one suggest me a way to click on the CLEAR DATA button in chrome. I have written the below code but the code is not working. Configuration : Chrome Version: Version 65.0.3325.181 (Official Build) (64-bit) Selenium Version: 3.11.0 //Clear the cache for the ChromeDriver instance. driver.get("chrome://settings/clearBrowserData"); Thread.sleep

If you try 9n**9n**9n in Chrome's console, Chrome breaks (it resembles an infinite loop). Why does this happen?

喜夏-厌秋 提交于 2020-08-22 04:35:46
问题 If you try 9n**9n**9n in Chrome's console, Chrome breaks (it resembles an infinite loop). Does the V8 engine lack the implementation for this case? I mean, if you try 9**9**9 it will return Infinity , which is kind of nice. Why doesn't V8 return Infinity as well in the former case? And why does it seem to go into an infinite loop? I tried this in Firefox too, and this problem doesn't exist, because currently there's no BigInt implementation in SpiderMonkey. Thanks! 回答1: As was said already,

Visual Studio Code debugger with Chrome refused to connect to localhost

£可爱£侵袭症+ 提交于 2020-08-21 06:52:31
问题 I've tried several suggestions on other posts to no avail. I have a 9 month old project that no longer shows in the browser from F5 debugging in vs code. I set up a brand new simple project with an index.html file to try to get Visual Studio code to launch it in a Chrome browser window. I keep getting an error page in chrome that says: This site can’t be reached localhost refused to connect. Did you mean http://localhost8000.com/? Search Google for localhost 8000 ERR_CONNECTION_REFUSED launch