Reputation: 313
I know chrome.webRequest.onHeadersReceived
but it gives me only headers from request executed by my extension.
Instead of doing another request in background, I would like to get headers of my selected tab from chrome.
Is it possible ?
Upvotes: 3
Views: 3149
Reputation:
The chrome.webRequest
APIs observe all HTTP requests that your extension has permissions for, not just ones made by your extension.
If you're not seeing the requests you expect to see, one of the following may be the case:
The extension is being loaded (or installed) after the page has already loaded. The Web Request API can only observe requests that are currently occurring, not ones that occurred in the past.
Your extension doesn't have permissions for the page. Give it permissions.
You are trying to observe requests made by a protected page, like the Chrome Web Store. You can't do that.
Upvotes: 6