Skip to content
Snippets Groups Projects
Unverified Commit 41a5f99e authored by Noraiz Anwar's avatar Noraiz Anwar Committed by GitHub
Browse files

Merge pull request #18729 from edx/noraiz/EDUCATOR-3292

exempt discussion upload from xframe deny
parents b386198a dd9e10f7
No related merge requests found
......@@ -11,6 +11,7 @@ from django.core import exceptions
from django.http import Http404, HttpResponse, HttpResponseServerError
from django.utils.translation import ugettext as _
from django.views.decorators import csrf
from django.views.decorators.clickjacking import xframe_options_exempt
from django.views.decorators.http import require_GET, require_POST
from opaque_keys.edx.keys import CourseKey
from six import text_type
......@@ -742,6 +743,7 @@ def unfollow_commentable(request, course_id, commentable_id):
@require_POST
@login_required
@csrf.csrf_exempt
@xframe_options_exempt
def upload(request, course_id): # ajax upload file to a question or answer
"""view that handles file upload via Ajax
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment