Closed codyfyi closed 1 year ago
I just stole that from GraphQL Playground: https://github.com/graphql/graphql-playground/blob/60f90a910f6df590c6c87cf3f8922a4f61ef454e/packages/graphql-playground-html/src/render-playground-page.ts#L95
I'd imagine they would have changed it already if it was really a problem
Interesting... I'm not sure what is going on here. I'm going to close this PR. If more people report Safari not working I can circle back and try to find the root cause, but the renderOptions solution in my comment above gets Safari working.
Safari throws a CORS fit without the
https:
protocol included in the default cdn url and won't load the playground. Other browsers seem fine.Here is the error in the Safari console:
When I override the default render options the problem on Safari goes away:
I'm not sure if there is a downside you were trying to avoid by omitting the protocol, so there might be a tradeoff I'm not aware of by doing this.