Skip to content

Commit

Permalink
set cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
PollyCR committed Jan 22, 2020
1 parent d69d5d7 commit 61dcb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class ApplicationController < ActionController::API
before_action :set_cors_header

def set_cors_header
response.set_header('Access-Control-Allow-Origin', '*')
response.set_header('Access-Control-Allow-Origin', 'true')
end

def encode_token(payload)
Expand Down

0 comments on commit 61dcb70

Please sign in to comment.