Skip to content

Commit

Permalink
Merge pull request #3024 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 8a542b1 + 2f41ddf commit 87a95af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GIT

GIT
remote: https://github.com/cenit-io/cenit-admin.git
revision: 1b05ba26ed074853ea63a1c282503fe2021e3b28
revision: f295d47fdd04b7e93e32a4a4cc526345a2163c2b
specs:
cenit-admin (0.0.1)

Expand Down
3 changes: 1 addition & 2 deletions app/controllers/build_in_app_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ 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'] = '*'
headers['Access-Control-Allow-Origin'] = request.headers['Origin'] || ::Cenit.homepage
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 87a95af

Please sign in to comment.