Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Allow iframes for all of PromDash.
Browse files Browse the repository at this point in the history
We want to be able to show any PromDash content in iframes, so this
removes the X-Frame-Options for all views.
  • Loading branch information
juliusv committed Jun 12, 2014
1 parent b09a995 commit 5b1da21
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class ApplicationController < ActionController::Base
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception

after_action :allow_iframe
after_filter :set_csrf_cookie_for_ng

def set_csrf_cookie_for_ng
Expand Down
1 change: 0 additions & 1 deletion app/controllers/embed_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class EmbedController < ApplicationController
after_action :allow_iframe, only: :show
before_action :set_dashboard_via_slug, only: :show

def show
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/single_widget_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'slug_maker'

class SingleWidgetController < ApplicationController
after_action :allow_iframe, only: :show

def show
shortened_url = ShortenedUrl.find(params[:slug])
shortened_url.update_last_accessed
Expand Down

0 comments on commit 5b1da21

Please sign in to comment.