terean Posted October 11 Share Posted October 11 (edited) I am trying to add an external webpage to my site. I first tried adding an Embed Block via URL but the website: https://offline.licensespring.com/ doesn't allow that type of connection. I reached out to LicenseSpring and they said that I can embed it directly into the backend of my website, but I can't figure out how. I tried copying/pasting the JavaScript code from here https://docs.licensespring.com/license-api/activation-deactivation/offline-activation#QO5GD into a Code Block but that didn't work. JavaScript Code: var myHeaders = new Headers(); myHeaders.append("Accept", "application/json"); myHeaders.append("Date", "string"); myHeaders.append("Authorization", "string"); var raw = "{\"Payload\":\"Object\"}"; var requestOptions = { method: 'POST', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("/api/v4/activate_offline", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error)); Edited October 11 by terean Pasted JS code Link to comment
tuanphan Posted October 15 Share Posted October 15 with script code, you need to wrap in script tag <script> your script code </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment