mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-21 17:16:47 +03:00
Make browsable API compatbile with strong CSP (#8784)
Co-authored-by: Alexander Bliskovsky <abliskovsky@fusionbox.com>
This commit is contained in:
parent
6ec6ddea9b
commit
1ae812ea20
|
@ -0,0 +1,3 @@
|
|||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
|
@ -256,11 +256,7 @@
|
|||
<script src="{% static "rest_framework/js/bootstrap.min.js" %}"></script>
|
||||
<script src="{% static "rest_framework/js/prettify-min.js" %}"></script>
|
||||
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
||||
</script>
|
||||
<script src="{% static "rest_framework/js/load-ajax-form.js" %}"></script>
|
||||
{% endblock %}
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
|
@ -299,11 +299,7 @@
|
|||
<script src="{% static "rest_framework/js/bootstrap.min.js" %}"></script>
|
||||
<script src="{% static "rest_framework/js/prettify-min.js" %}"></script>
|
||||
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
||||
</script>
|
||||
<script src="{% static "rest_framework/js/load-ajax-form.js" %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue
Block a user