Skip to content
Snippets Groups Projects
Commit b3c6267c authored by Mayra Cabrera's avatar Mayra Cabrera Committed by 🤖 GitLab Bot 🤖
Browse files

Merge branch 'ac-fix-graphiql-csp' into 'master'

Fix graphql-explorer CSP violation

See merge request gitlab-org/gitlab-ce!32882

(cherry picked from commit d198363c)

eb4150d1 Import graphiql view
35d95a31 Fix CSP failure patching graphiql view
f222e74d Update to graphiql-rails v1.7.10
parent c0b9e50a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -84,7 +84,9 @@ gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
 
# GraphQL API
gem 'graphql', '~> 1.9.11'
gem 'graphiql-rails', '~> 1.4.10'
# TODO: remove app/views/graphiql/rails/editors/show.html.erb when https://github.com/rmosolgo/graphiql-rails/pull/71 will be released
# https://gitlab.com/gitlab-org/gitlab-ce/issues/67263
gem 'graphiql-rails', '~> 1.7.0'
gem 'apollo_upload_server', '~> 2.0.0.beta3'
gem 'graphql-docs', '~> 1.6.0', group: [:development, :test]
 
Loading
Loading
Loading
Loading
@@ -398,7 +398,7 @@ GEM
rake (~> 12)
grape_logging (1.7.0)
grape
graphiql-rails (1.4.10)
graphiql-rails (1.7.0)
railties
sprockets-rails
graphql (1.9.11)
Loading
Loading
@@ -1142,7 +1142,7 @@ DEPENDENCIES
grape-entity (~> 0.7.1)
grape-path-helpers (~> 1.1)
grape_logging (~> 1.7)
graphiql-rails (~> 1.4.10)
graphiql-rails (~> 1.7.0)
graphql (~> 1.9.11)
graphql-docs (~> 1.6.0)
grpc (~> 1.19.0)
Loading
Loading
<!DOCTYPE html>
<html>
<head>
<title><%= GraphiQL::Rails.config.title || 'GraphiQL' %></title>
<%= stylesheet_link_tag("graphiql/rails/application") %>
<%= javascript_include_tag("graphiql/rails/application", nonce: true) %>
</head>
<body>
<%= content_tag :div, 'Loading...', id: 'graphiql-container', data: {
graphql_endpoint_path: graphql_endpoint_path,
initial_query: GraphiQL::Rails.config.initial_query,
logo: GraphiQL::Rails.config.logo,
headers: GraphiQL::Rails.config.resolve_headers(self),
query_params: GraphiQL::Rails.config.query_params
} %>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment