Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
41a5f99e
Unverified
Commit
41a5f99e
authored
6 years ago
by
Noraiz Anwar
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18729 from edx/noraiz/EDUCATOR-3292
exempt discussion upload from xframe deny
parents
b386198a
dd9e10f7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/django_comment_client/base/views.py
+2
-0
2 additions, 0 deletions
lms/djangoapps/django_comment_client/base/views.py
with
2 additions
and
0 deletions
lms/djangoapps/django_comment_client/base/views.py
+
2
−
0
View file @
41a5f99e
...
...
@@ -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
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment