Skip to content

Commit

Permalink
Address some issues raised by static analysis (#278)
Browse files Browse the repository at this point in the history
- Better CORS restriction
- Use resource integrity for jsTree
  • Loading branch information
rsnyman committed Jan 14, 2022
1 parent d9053b5 commit af87998
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/ibutsu_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_app(**extra_config):
"openapi.yaml", arguments={"title": "Ibutsu"}, base_path="/api", pythonic_params=True
)

CORS(app.app)
CORS(app.app, resources={r"/*": {"origins": "*", "send_wildcard": False}})
db.init_app(app.app)
bcrypt.init_app(app.app)
Mail(app.app)
Expand Down
4 changes: 2 additions & 2 deletions backend/ibutsu_server/templates/reports/exception-report.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions backend/ibutsu_server/templates/reports/html-report.html

Large diffs are not rendered by default.

0 comments on commit af87998

Please sign in to comment.