

This allows the user agent to embed your dApp in an iframe as long as all the parent windows have the specified origin. You must send the directive frame-ancestors in this header with the value of (recommended) or the wildcard '*'. If you do not currently set either of these security headers, you do not need to make any changes, but you should be aware that they can affect the compatibility with Ethvault. X-Frame-Options is superceded by Content-Security-Policy, but you should set both headers for compatibility with older browsers.


In order to be embed your dApp in any iframe, your web servers need to send the correct HTTP headers.
#ECLINX INTEGRATION GUIDE UPDATE#
Step 3: Update your Content-Security-Policy and X-Frame-Options headers (10 - 30 minutes)
#ECLINX INTEGRATION GUIDE CODE#
ensdomains/ens-app/pull/405, kendricktan/heiswap-dapp/pull/13) and your site will support all iframe based dApp browsers (via window.web3 and window.ethereum)ĭetect the iframe context and add an option to use the iframe-provider directly from your code You have two options for accessing the Ethvault wallet from your dAppĪdd the iframe-polyfill-provider (e.g. Step 2: Add the Web3 provider to your dApp (10 - 30 minutes) It will be referenced when updating to include your site. This will be where you can easily request changes to Ethvault to support your integration. Step 1 (Optional): Create an issue in this repository (1 minute)Ĭreate an issue in this repository to track the integration. Integrating with Ethvault is simple and is estimated to take anywhere from 1 minute to 2 hours to complete, depending on the depth of integration that you want to add to your dApp. Ethvault offers many advantages for your users, allowing them to sign in and access your dApp using their Ethereum accounts from any device. Unlike other dApp browsers that inject web3 and ethereum directly into the window, Ethvault embeds your dApp in an iframe and cannot set variables on the window object. Integration means making your dApp compatible with the Ethvault dApp browser. Ethvault Integration Guide What is Ethvault?Įthvault is a browser based Ethereum wallet and dApp browser.
