Skip to content

Commit

Permalink
Merge pull request #3021 from cenit-io/hotfix/fix_bugs_in_new_cenit
Browse files Browse the repository at this point in the history
Fix cors
  • Loading branch information
yoandrypa committed May 6, 2023
2 parents 8daab97 + 0674293 commit 6224d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/build_in_app_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def cors_check

def process_headers
headers.delete('X-Frame-Options')
headers['Access-Control-Allow-Origin'] = request.headers['Origin'] || ::Cenit.homepage
# headers['Access-Control-Allow-Origin'] = request.headers['Origin'] || ::Cenit.homepage
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Credentials'] = 'true'
headers['Access-Control-Allow-Headers'] = request.headers['Access-Control-Request-Headers'] || '*'
headers['Access-Control-Allow-Methods'] = request.headers['Access-Control-Request-Method'] || Setup::Webhook::METHODS.join(',')
Expand Down

0 comments on commit 6224d73

Please sign in to comment.