Jump to content

Embed block: masking the url within the iframe code injection

Recommended Posts

Posted (edited)

Hi there, I have built a few dashboards which I have hosted on heroku, e.g. https://reviews-montage.herokuapp.com/

On my site https://www.analyticsbymark.co.uk/ I have a free member section which I want to provide access to some of the dashboards I have created. I will also create a paid member section with access to others.

The apps embed great into the site using an embed block with a code injection of:

<iframe src="https://reviews-montage.herokuapp.com/" width=100% height=2500
  frameborder='0'  scrolling='no' seamless='seamless'>

(it doesn't seem to work if i just enter the URL into the embed block)

The issue is that if I then inspect the page once rendered I can see the underlying url for the app hosted on heroku. It's not the end of the world but essentially as it is now someone could pay for membership, get the url, cancel membership and go around my site and straight to the underlying app.

image.thumb.png.0e76496941763b0bb8b1e437599f61e5.png

Is there a way you can save an url in say an environment within squarespace and reference that in the code injection or something?

Thanks in advance for any help

Mark

 

Edited by analyticsbymark
Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

38 minutes ago, analyticsbymark said:

Is there a way you can save an url in say an environment within squarespace and reference that in the code injection or something?

No. Squarespace is a serverless platform so you don't have access to a "backend" where you can store this information.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
39 minutes ago, paul2009 said:

No. Squarespace is a serverless platform so you don't have access to a "backend" where you can store this information.

Gotcha, thanks for the clarity. Is there any other way it might be possible to mask the url or is it simply not possible?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.