graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.31k stars 769 forks source link

Fix graphiql explorer styles by sending missing param to render_graphiql #1460

Closed mnasiri closed 1 year ago

mnasiri commented 1 year ago

Resolves #1418 Fix graphiql explorer styles by sending graphiql_plugin_explorer_css_sri param to render_graphiql function of the GraphQlView

The problem: The param graphiql_plugin_explorer_css_sri is used in graphene_django/templates/graphene/graphiql.html (this snippet) but doesn't set when send params to render graphiql here.

I had this problem locally. so, I only add a line to the view.py

Thanks for your attempts.