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

Commit

Permalink
Add CORS header to embed#show
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartnelson3 committed Jun 7, 2014
1 parent 6dddb92 commit b09a995
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/embed_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class EmbedController < ApplicationController
before_action :set_dashboard_via_slug, only: :show

def show
response.headers['Access-Control-Allow-Origin'] = '*'
@servers = Server.all
render layout: 'single_widget'
end
Expand Down

0 comments on commit b09a995

Please sign in to comment.