Skip to content

Commit

Permalink
Merge pull request #3022 from cenit-io/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
yoandrypa committed May 6, 2023
2 parents f7ca70b + 6224d73 commit 8a542b1
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 8a542b1

Please sign in to comment.