Skip to content

Commit

Permalink
Fix setting of response headers in token endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tstrass committed Dec 6, 2024
1 parent 874382d commit 6dd2f98
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ def make_response
response_hash.merge!(patient: smart_patient_input) if smart_patient_input

response.body = response_hash.to_json
response.headers.merge(
'Cache-Control' => 'no-store',
'Pragma' => 'no-cache',
'Access-Control-Allow-Origin' => '*'
)
response.headers['Cache-Control'] = 'no-store'
response.headers['Pragma'] = 'no-cache'
response.headers['Access-Control-Allow-Origin'] = '*'
response.status = 200
end

Expand Down

0 comments on commit 6dd2f98

Please sign in to comment.