mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +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/bootstrap.min.js" %}"></script>
|
||||||
<script src="{% static "rest_framework/js/prettify-min.js" %}"></script>
|
<script src="{% static "rest_framework/js/prettify-min.js" %}"></script>
|
||||||
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
||||||
<script>
|
<script src="{% static "rest_framework/js/load-ajax-form.js" %}"></script>
|
||||||
$(document).ready(function() {
|
|
||||||
$('form').ajaxForm();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -299,11 +299,7 @@
|
||||||
<script src="{% static "rest_framework/js/bootstrap.min.js" %}"></script>
|
<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/prettify-min.js" %}"></script>
|
||||||
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
<script src="{% static "rest_framework/js/default.js" %}"></script>
|
||||||
<script>
|
<script src="{% static "rest_framework/js/load-ajax-form.js" %}"></script>
|
||||||
$(document).ready(function() {
|
|
||||||
$('form').ajaxForm();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user