solved iFrame using sub-domain

Intro2Music
Intro2Music
@intro2music
8 years ago
120 posts
I'm having a problem with iFrame validation. I'm trying to add an iframe from a sub-domain of my JR install, but in the iframe control I get an error. It seems to only allow me to input domains without the www (and not sub-domains) into the field.

If the JR install and the sub-domain is from the same place, e.g. i2apps.co.uk and appbuzz.i2apps.co.uk shouldn't it work without the need to add the sub-domain to the iframe allowed domains list?

I've tried this on a couple of different JR installs and can't get it to work properly on any of them.

As a temporary workaround I've allowed all html tags in the Core control, but this isn't an ideal solution for me.

Can anyone replicate this issue?

Mick
updated by @intro2music: 08/08/16 12:05:36PM
michael
@michael
8 years ago
7,697 posts
Could you throw together some steps to replicate the issue. I'll try and see if I can.

--edit--
Seams to be working for me:
http://iixxiicc.jamroomhosting.com/one/page/1/with-an-iframe

Following the docs here:

Docs: "Iframe Control"
https://www.jamroom.net/the-jamroom-network/documentation/modules/2924/iframe-control

I added 'google.com' to the "Allowed IFrame Domains" and got the "This iframe is not allowed" error.

Then I added:
calendar.google.com
and the calendar popped up.

So you need to add the subdomain, not just the top level domain.
updated by @michael: 04/26/16 02:41:51AM
Intro2Music
Intro2Music
@intro2music
8 years ago
120 posts
Hi Michael, thanks for your input.

When I try to add a sub-domain in the iFrame validation it just gets rejected with this error...

'You have entered an invalid value for "domain name" - value must be a valid domain name (no www)'

Should I open a ticket for this one?

Mick
brian
@brian
8 years ago
10,144 posts
Is the domain a funky domain name? Open a ticket with us with the domain you are trying to add so we can check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
8 years ago
10,144 posts
This is fixed in the next core release.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net