Stocate Posted April 28, 2020 Share Posted April 28, 2020 Hey everyone! I'm currently trying to add an HTML/JavaScript code block that allows a page to make API calls/HTTP requests. I've attached a simple HTML file screenshot with all the code I'm trying to add to the code block. This HTML file, when opened on chrome, successfully queries the API using JavaScript 'fetch' and receives a response which is added to a table and displayed in HTML. Unfortunately when copied on the Squarespace code block, I get a script disabled message on the editing page and then a fetch failed when viewing the page normally. Any help would be greatly appreciated, let me know if any further clarification is needed! Thank you! Link to comment
MarkDG Posted June 1, 2021 Share Posted June 1, 2021 You don't happen to get this error by any chance do you? I am having the same issue : GET https://consent.trustarc.com/bannermsg?action=returns&domain=squarespace.com&behavior=implied&country=gb&language=en&rand=0.0511123231283912 net::ERR_BLOCKED_BY_CLIENT POST https://sentry.io/api/1363201/envelope/?sentry_key=5fa7b3ac571046d8a61aab5ff7649693&sentry_version=7 net::ERR_BLOCKED_BY_CLIENT 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