bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-librejs] Update


From: Nathan Nichols
Subject: [Bug-librejs] Update
Date: Sun, 27 Aug 2017 13:28:55 -0500

The biggest issue right now is that they still haven't implemented an official way to edit the body of a request. However, there is one alternate solution that seems promising.

This solution involves editing the content security policy headers of requests to allow either blob URLs or data URLs to load. 

Specifically, I'm trying to edit the "script-src" keyword's section under the "content-security-policy" header by appending "blob:" and "data:" . It then adds a listener to script requests and then redirects them all to a "data:" URL of a blob containing 'console.log("it worked");'. 

Currently I am having trouble with the details of implementing this and I would appreciate advice from anyone who knows how CSP headers work better than I do. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]