Ruby on Rails Saturday, September 2, 2017

I tried to solve this using the following approach

after_action :allow_iframe

def embed_widget
#my widget code will be here
end

private
def allow_iframe 
  response.headers.delete "X-Frame-Options"
end

This is working fine in local machine running on thin server.
But not working in production which is running on nginx server

Any one faced this type of problem before ?? Please help me with this problem.
Thanks.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b62b7c93-078a-4e20-8ca3-2dd8cbc780ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment