When enabling the youtube jsapi the module add an 'origin' query. For instance I have a site installed on http://localhost/drupal_test/, the origin parameter will include the "localhost" domain AND the directory "drupal_test".

Eventually the origin should only contain the URL scheme and full domain but without the directory (see https://developers.google.com/youtube/iframe_api_reference?hl=en#Loading...)

This cause multiple errors:
- On chrome there is a warning like this in the console: Untrusted origin: http://localhost
- We can't call js functions on the iframe using the youtube iframe api.

Comments

idflood created an issue. See original summary.

idflood’s picture

Status: Active » Needs review
StatusFileSize
new528 bytes
new457 bytes

  • guschilds committed bc138d3 on 8.x-1.x authored by idflood
    Issue #2675626 by idflood: Fixed Origin parameter is wrong when drupal...

  • guschilds committed a2aa778 on 7.x-1.x authored by idflood
    Issue #2675626 by idflood: Fixed Origin parameter is wrong when drupal...
guschilds’s picture

Status: Needs review » Fixed

Thanks for the patches! They've been committed to the 7.x-1.x and 8.x-1.x branches.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.