Skip to content

Commit d1aecab

Browse files
committed
add integrity and crossorigin attributes
1 parent c37c1c2 commit d1aecab

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
@@ -16,11 +16,20 @@
1616
width: 100%;
1717
}
1818
</style>
19-
<link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.css" rel="stylesheet" />
20-
<script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js"></script>
21-
<script src="https://cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"></script>
22-
<script src="https://cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"></script>
23-
<script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"></script>
19+
<link href="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.css"
20+
rel="stylesheet"
21+
crossorigin="anonymous" />
22+
<script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js"
23+
integrity="sha384-dcF7KoWRaRpjcNbVPUFgatYgAijf8DqW6NWuqLdfB5Sb4Cdbb8iHX7bHsl9YhpKa"
24+
crossorigin="anonymous"></script>
25+
<script src="https://cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"
26+
integrity="sha384-j40ChW3xknV2Dsc9+kP3/6SW2UrR7gYSbx9pmyNU1YTacm/PEj/0bxB9vM8jWFqx"
27+
crossorigin="anonymous"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"
29+
integrity="sha384-P4XM5fEtXj1kXZzsm1EOHZ7HmQIuzyRjjvX4na21R4eRLjmm+oUZua5ALb2PIojw"
30+
crossorigin="anonymous"></script>
31+
<script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
32+
crossorigin="anonymous"></script>
2433
</head>
2534
<body>
2635
<script>

0 commit comments

Comments
 (0)