FoundryVTT Inline Webviewer Extension
August 4, 2021 ยท View on GitHub
This browser extension allows for circumventing x-frame-options within the Inline Webviewer module.
It does the following:
- Drop all
x-frame-optionsresponse headers - Drop all
content-security-policyresponse headers - Change all
set-cookieresponse headers to setSameSite=None(this also requires theSecureflag to be set for the cookie)
Note, that when cookies within this iframe are required, the iframe content has to be HTTPS, otherwise cookies will not be set.
Special websites
| Site | Login Issues | Third Party Login Issues | Other Issues |
|---|---|---|---|
| https://www.dndbeyond.com | Requires devtools to be open when logged in | ||
| https://www.notion.so | Requires devtools to be open when logged in | Google login does not work | |
| https://5emagic.shop | Requires you to login in a different tab | Patreon login inside foundry does not work, outside it does |
Help! A website that isn't in the list isn't functioning!
Here's a few things you can try
- Try using a different login method.
- Try logging in with devtools open.
- Try logging in in a different tab and check if you're logged in in the webview.
- Try figuring out what cookie stores the login data and add it's name and site to the brokenCookies.json file in a pull request.
- If you don't know how to do 4, make an issue with the affected site.
Installation
Method 1
-
Download the crx file from the Releases tab.
-
Go to chrome://extensions in your browser.
-
Enable Developer mode (usually top right).
-
Drag crx file onto the extensions page.
-
Accept extension install.
Method 2
-
Download the zip file from the Releases tab.
-
Unzip the file to a folder somewhere (this folder will be permanent, so don't remove it after installing).
-
Go to chrome://extensions in your browser.
-
Enable Developer mode (usually top right).
-
Click on the
Load unpackedbutton and select the folder you made before. -
The extension should now be installed