Make browsable API compatbile with strong CSP (#8784)

Co-authored-by: Alexander Bliskovsky <abliskovsky@fusionbox.com>
This commit is contained in:
juspence 2022-11-29 20:49:41 +00:00 committed by GitHub
parent 6ec6ddea9b
commit 1ae812ea20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 10 deletions

View File

@ -0,0 +1,3 @@
$(document).ready(function() {
$('form').ajaxForm();
});

View File

@ -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 %}

View File

@ -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>