I have an issue using the Video Embed Field in my Drupal 7 setup.
I have published quite a few youtube videos that I would like displayed in a colorbox window (not all at once).
The issue is this that the Video Embed Field generates the URL as http://domain.com/. If I go to http://domain.com and click on the link it works. But if I go to http://www.domain.com and click on the link it can't display the content and I receive a Cross Domain Request error. I have tried to install CORS but I can't get it working. Not sure if there is anything else I have to do for that.
But my question is this. Is there a way to rewrite the URL to what the browser says so it won't matter if its www.domain.com or domain.com.
Comment | File | Size | Author |
---|---|---|---|
#2 | relative_path-2390037-2.patch | 458 bytes | plopesc |
Comments
Comment #1
dudeonthebayou CreditAttribution: dudeonthebayou commentedComment #2
plopescHey @dudeonthebayou
Could you test this patch?
Thank you!
Comment #3
dudeonthebayou CreditAttribution: dudeonthebayou commented@plopesc, thank you it works on both http://www.domain.com and http://domain.com now.
Comment #5
plopescCommitted. Thanks