Skip to content

Commit ea2cd98

Browse files
adamchainzjkimbo
authored andcommitted
Always use HTTPS for CDN files (#498)
* Always use HTTPS for CDN files There's no point using insecure, deprecated HTTP even if the current page is on HTTP. * add integrity and crossorigin attributes
1 parent 263c726 commit ea2cd98

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

graphene_django/templates/graphene/graphiql.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@
1717
width: 100%;
1818
}
1919
</style>
20-
<link href="//cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.css" rel="stylesheet" />
21-
<script src="//cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js"></script>
22-
<script src="//cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"></script>
23-
<script src="//cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"></script>
24-
<script src="//cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"></script>
20+
<link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.css"
21+
rel="stylesheet"
22+
crossorigin="anonymous" />
23+
<script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js"
24+
integrity="sha384-dcF7KoWRaRpjcNbVPUFgatYgAijf8DqW6NWuqLdfB5Sb4Cdbb8iHX7bHsl9YhpKa"
25+
crossorigin="anonymous"></script>
26+
<script src="https://cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"
27+
integrity="sha384-j40ChW3xknV2Dsc9+kP3/6SW2UrR7gYSbx9pmyNU1YTacm/PEj/0bxB9vM8jWFqx"
28+
crossorigin="anonymous"></script>
29+
<script src="https://cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"
30+
integrity="sha384-P4XM5fEtXj1kXZzsm1EOHZ7HmQIuzyRjjvX4na21R4eRLjmm+oUZua5ALb2PIojw"
31+
crossorigin="anonymous"></script>
32+
<script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
33+
crossorigin="anonymous"></script>
2534
</head>
2635
<body>
2736
<script src="{% static 'graphene_django/graphiql.js' %}"></script>

0 commit comments

Comments
 (0)