Chrome:The website uses HSTS. Network errors…this page will probably work later

I am developing against localhost. This morning right after I used fiddler I started getting this error on chrome (works correctly in firefox) “You cannot visit localhost right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.” Now localhost works in chrome only if … Read more

How to verify an XPath expression in Chrome Developers tool or Firefox’s Firebug?

How can I verify my XPath? I am using Chrome Developers tool to inspect the elements and form my XPath. I verify it using the Chrome plugin XPath Checker, however it does not always give me the result. What is a better way to verify my XPath. I have also tried using Firebug to inspect … Read more

How to handle “Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first.” on Desktop with Chrome 66?

I’m getting the error message.. Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first. ..when trying to play video on desktop using Chrome version 66. I did find an ad that began playback automatically on a website however using the following HTML: <video title=”Advertisement” webkit-playsinline=”true” playsinline=”true” style=”background-color: rgb(0, 0, … Read more

How to remove all breakpoints in one step in Google Chrome?

How to remove all breakpoints in one step in Google Chrome? Using version 11. [update] There is now a feature request for this. [update] The feature request is closed (Dec 2011)!   Best Answers This is now possible in Sources tab of Chrome Developer Tools. Please see screen grab below and right click within the “Breakpoints” section … Read more

How can I inspect disappearing element in a browser?

How can I inspect an element which disappears when my mouse moves away? I don’t know it’s ID, class or anything but want to inspect it. Solutions I have tried: Run jQuery selector inside console $(‘*:contains(“some text”)’) but didn’t have any luck mainly because the element is not hidden but probably removed from the DOM … Read more

google chrome extension :: console.log() from background page?

If I call console.log(‘something’); from the popup page, or any script included off that it works fine. However as the background page is not directly run off the popup page it is not included in the console. Is there a way that I can get console.log()‘s in the background page to show up in the … Read more

Origin is not allowed by Access-Control-Allow-Origin

XMLHttpRequest cannot load http://localhost:8080/api/test. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin. I read about cross domain ajax requests, and understand the underlying security issue. In my case, 2 servers are running locally, and like to enable cross domain requests during testing. localhost:8080 – Google Appengine dev server localhost:3000 – Node.js server I am issuing an … Read more

clear javascript console in Google Chrome

I was wondering if I could clear up the console with some command.. console.log(), can print… is there a command to clear up console?.. I’ve tried to console.log(console); and got this functions below… assert: function assert() { [native code] } constructor: function Console() { [native code] } count: function count() { [native code] } debug: … Read more