Juraj M.
unread,Jun 9, 2022, 8:10:29 AM6/9/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Yaron Shani, Juraj M., PhistucK, Chromium Extensions
Yeah, so this is pretty bad.
The only solution I can think of is removing the header completely from top-level requests :), like this:
```
chrome.declarativeNetRequest.updateSessionRules({
addRules: [{
id: 1,
condition: {
resourceTypes: ['main_frame'],
},
action: {
type: 'modifyHeaders',
responseHeaders: [
{header: 'cross-origin-embedder-policy', operation: 'remove'},
],
},
}],
});
```
That's a pretty sinister solution though, so applying it only a specific host / tab would be much better.