Skip to content

Commit c262967

Browse files
committed
fix: test
1 parent b2d85fa commit c262967

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ name = "pypi"
2222
# 5. Run `pipenv install --dev` in your terminal.
2323

2424
[packages]
25-
codeforlife = "==0.28.0"
25+
codeforlife = "==0.28.1"
2626
# 🚫 Don't add [packages] below that are inherited from the CFL package.
2727

2828
[dev-packages]
29-
codeforlife = {version = "==0.28.0", extras = ["dev"]}
29+
codeforlife = {version = "==0.28.1", extras = ["dev"]}
3030
# codeforlife = {file = "../codeforlife-package-python", editable = true, extras = ["dev"]}
3131
# 🚫 Don't add [dev-packages] below that are inherited from the CFL package.
3232

Pipfile.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

application.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@
55
The entrypoint to our app.
66
"""
77

8-
from codeforlife.server import Server as _Server
9-
10-
11-
# pylint: disable-next=abstract-method,missing-class-docstring
12-
class Server(_Server):
13-
def load_config(self):
14-
self.options["forwarded_allow_ips"] = "*"
15-
return super().load_config()
16-
8+
from codeforlife.server import Server
179

1810
server = Server()
1911

settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@
5757

5858
SESSION_ENGINE = "src.models.session"
5959

60-
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
60+
# TODO: delete this.
61+
CSRF_COOKIE_SECURE = bool(int(os.getenv("CSRF_COOKIE_SECURE", "1")))
62+
CORS_ALLOW_ALL_ORIGINS = bool(int(os.getenv("CORS_ALLOW_ALL_ORIGINS", "0")))

0 commit comments

Comments
 (0)