There are a few things that need to be done at the server level to allow wallets to connect to the website.
The plugin uses the Cardano Wallet Serialization Library as a part of the core of its functionality and as a result, requires a particular file WASM to be loaded on the server. By default, web servers don’t have this file type enabled and manual enabling is required.
This tutorial will show you how to add the required WASM file type to your htaccess file on the SiteGround server in order to allow for the file to be loaded.
How To Add the WASM MIME Type to the Server htaccess file
Log into Your Account on SiteGround #
Log into your SiteGround or web hosting account.
Go To Site Tools #
Navigate to WEBSITES and the SITE TOOLS for the website to that you have installed CardanoPress on.
Access the .htaccess file #
Navigate to SITE -> FILE MANAGER.
Open the folder of your website and navigate to public_html.
Open and access the .htaccess file.
This is the file that we need to edit to allow for the WASM MIME type.
Adding WASM MIME Type #
At the top and beginning of the file, add in to line
AddType application/wasm .wasm
Add this before the line #BEGIN WordPress.
This will allow the WASM file to load on your server.