Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions eagleproject/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.core.exceptions import ValidationError
from django.core.validators import validate_email

from django.views.decorators.csrf import csrf_exempt
import random
from django.template.loader import render_to_string

Expand Down Expand Up @@ -851,7 +850,6 @@ def generate_token():
return "%0.12d" % random.randint(0, 999999999999)


@csrf_exempt
def subscribe(request):
latest_report_url = request.build_absolute_uri('/reports/weekly')
if request.method == 'POST':
Expand Down
2 changes: 2 additions & 0 deletions eagleproject/eagleproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@

ALLOWED_HOSTS = [env("ALLOWED_HOST"), "analytics.ousd.com"]

CSRF_TRUSTED_ORIGINS = ["https://analytics.ousd.com"]


# Application definition

Expand Down