Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
403 forbidden error when editing post with youtube video embedded
Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Jan 30, 2017 - 4:29 pm

I just posted embedded videos at  http://highdesertfood.org/foru.....osemary/ 

When I went to edit it I got the 403.   When I first posted I initially got an error from Wordfence, but on second try it went through (added an exception, I think). 

Then I turned off all plugins except Akismet and SP, but no go, 403 every time now.   I suspect it has to do with the iframe since I can edit other posts.

Used Firefox and also tried it in Chrome, no go.

Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Jan 30, 2017 - 4:35 pm

This is weird here too.  I included the iframe code for the video when I first posted above and it displayed the code.  Then I edited the above post, it showed the video in preview, but then stripped the code.

I edited to add the code again and again it displayed the code, go to edit (made no changes), saved and the code disappears.

<iframe src="https://www.youtube.com/embed/l-Zo9I3C3_I" width="560" height="315" frameborder="0"></iframe></p>

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 30, 2017 - 4:59 pm

Were you posting as an admin or a site user? If an admin then you will be allowed to use an iFrame but if a user then SP will strip it out unless permission has been granted for you to use it. iFrames are really dangerous to allow users to create as they can do just about anything in an iframe including running db and scripts.

If you want to embed a youtube video in an SP post you use the url NOT the html. WordPress will convert that via the oEmbed protocols at runtime making it safe from attack.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Jan 31, 2017 - 1:31 pm

I was posting as admin and it's just so strange that it stripped the iframe code only when editing.  Here too.

But I'll just use the link for the videos, thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 31, 2017 - 3:17 pm

It is the best and recommended way. It is precisely because of the iFrame danger that WP invested so much effort into supporting the oEmbed protocol.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620