Skip to content

graphiql.min.js errors #1712

@leaderit

Description

@leaderit

Expected Behavior

GraphQL IDE

Actual Behavior

White screen with errors in the javascript console

Steps to Reproduce the Problem

// AXUM
async fn graphiql() -> impl IntoResponse {
response::Html(GraphiQLSource::build().endpoint("/").finish())
}

...
// app router
let app = Router::new().route("/", get(graphiql).post_service(GraphQL::new(schema)));

// Variant with very_pemissive() CORS does not work too
let app = Router::new()
.route("/", get(graphiql).post_service(GraphQL::new(schema)))
.layer(CorsLayer::very_permissive());

Specifications

  • Version: 7.0.16
  • Platform: Mac OS
  • Subsystem: GraphiQLSource

full source fo reproduce the problem and screenshoot of the problem in the attachment

demo-1.tar.gz

Image

Full errors screen:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions