Skip to content

Commit

Permalink
fix: missing cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
richardnguyen99 committed Dec 15, 2023
1 parent 6d9400b commit df9be5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cursus/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def after(response: flask.Response):
response.add_etag()
response.last_modified = datetime.datetime.utcnow()

response.access_control_allow_methods.add("GET")
response.access_control_allow_methods = ["GET"]
response.access_control_allow_origin = "*"
response.access_control_max_age = 3600

Expand Down
7 changes: 1 addition & 6 deletions cursus/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@
{% block css %}
{% assets filters="autoprefixer6, cssmin", output="css/vendor.bundle.css", "css/prism.css" %}
<link rel="stylesheet" href="{{ ASSET_URL }}" />
{% endassets %}

{% assets filters="autoprefixer6, cssmin", output="css/vendor.bundle.css", "css/prism.css" %}
<link rel="stylesheet" href="{{ ASSET_URL }}" />
{% endassets %}

{% endassets %}
{% assets filters="cssmin", output="css/core.bundle.css", "css/index.css", "css/_dropdown.css" %}
<link rel="stylesheet" href="{{ ASSET_URL }}" />
{% endassets %}
Expand Down

0 comments on commit df9be5f

Please sign in to comment.