Skip to content

Commit

Permalink
Add permissive CORS policy to v2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Nov 12, 2020
1 parent 0b50b99 commit 86a03a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/api/v2/conferences_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class ConferencesController < Api::BaseController
respond_to :json

def show
headers['Access-Control-Allow-Origin'] = '*'

render json: @conference, adapter: :json_api, include: ['**']
end
end
Expand Down

0 comments on commit 86a03a3

Please sign in to comment.