question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web Request interface appears not to be available

See original GitHub issue

I have a Webview tag in my main HTML which I can’t seem to use the webRequest API on. request and webRequest is undefined. Attempts to make permissions work in the package.json file causes an error but it was my understanding that all such Chrome APIs were supposed to be automatically enabled.

`<webview id="app-view" src="http://google.com" />

<script> const appView = document.getElementById('app-view'); console.log(appView.webRequest); console.log(appView.request); </script>`

nw.js v0.16.1 Node v6.3.1 Chromium 52.0.2743.116 commit hash: a3bea28-143aee6-b879ccd-80ede20

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostoycommented, Sep 5, 2016

As in the examples in the documents, you should access <webview> tag in onload callback.

0reactions
rogerwangcommented, Sep 25, 2017

close until more information is available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

chrome.webRequest - Chrome Developers
For HTTP requests, this means that the status line and response headers are available. This event is informational and handled asynchronously. It does...
Read more >
503 Service Unavailable - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle ...
Read more >
WebRequest Class (System.Net)
If the application that creates the WebRequest object runs with the credentials of a Normal user, the application will not be able to...
Read more >
17. Web MVC framework
Beans whose lifecycle is scoped to the current HTTP request or HTTP Session . ... WebApplicationInitializer is an interface provided by Spring MVC...
Read more >
HTTP Request Methods – Get vs Put vs Post Explained ...
... available to us via an API and we make requests to these APIs via the HTTP protocol. API stands for application programming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found