MD_Slider under nGinx 1.8.1

iszabi's picture
iszabi
Fri, 02/05/2016 - 13:17
#1
MD_Slider under nGinx 1.8.1

Hi Sindy,

I'd like to announce a bug in md_slider under nginx web-server.
We are using nginx reverse proxy servers for many drupal sites developing, but md_slider not working under default nginx config.
There have been default enabled an iframe protection in nginx.conf, and the md_slider not loaded the media browser functions.

You can see the error in the browser development Console:

Refused to display 'http://domain.tld/media/browser?render=media-popup&types=&activePlugins=...' in a frame because it set 'X-Frame-Options' to 'DENY'.
media.popups.js?v=7.x-2.0-beta1:98 Uncaught SecurityError: Sandbox access violation: Blocked a frame at "http://domain.tld" from accessing a frame at "null".  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag."

---
Error solved after I reconfigured the nginx vhost.
See on page: http://geekflare.com/add-x-frame-options-nginx/

#add_header X-Frame-Options DENY;

---
MD_Slider
version = "7.x-2.19"
core = "7.x"
--

Best Regards,
iszabi

cindy's picture
cindy
Sun, 02/14/2016 - 21:33

Hi,

Thank you very much for your feedback and for your patience

We have just been back from our Holiday

Our MD Slider requires modulehttps://www.drupal.org/project/media

This module uses Iframe to add image, media. If you do not add parameter in nginx.conf under server section, all fields using media will also have error, not only our MD Slider

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.