Skip to content

Commit

Permalink
Merge pull request #5720 from ccnmtl/cors-prepend
Browse files Browse the repository at this point in the history
Prepend CORS middleware
  • Loading branch information
nikolas authored Feb 10, 2025
2 parents 846be20 + 74bc20e commit d5e1c6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mediathread/settings_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@
},
]

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
] + MIDDLEWARE # noqa

MIDDLEWARE += [ # noqa
'django.middleware.csrf.CsrfViewMiddleware',
'corsheaders.middleware.CorsMiddleware',
'mediathread.main.middleware.MethCourseManagerMiddleware',
'django_user_agents.middleware.UserAgentMiddleware',
'lti_tool.middleware.LtiLaunchMiddleware',
Expand Down

0 comments on commit d5e1c6b

Please sign in to comment.