Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN is broken for GraphiQL package #506

Closed
kchang409 opened this issue Aug 16, 2017 · 8 comments
Closed

CDN is broken for GraphiQL package #506

kchang409 opened this issue Aug 16, 2017 · 8 comments

Comments

@kchang409
Copy link

kchang409 commented Aug 16, 2017

Hi guys,
The CDN link for GraphiQL package seems to be broken and does not work. Although I'm not sure if this happens only on my end, I'm using graphiql-app as an alternative for now.

@shoaibmerchant
Copy link

Yep there is some issue, I am facing a different error with this file

https://unpkg.com/react-dom@15.6.1/dist/react-dom.min.js

At the EOF you will find a 'ret' token, that is resulting in a syntax error

@pukapukan
Copy link

facebook/react#10465

@stubailo
Copy link
Contributor

Sounds like we should link to a specific version instead of @15 to avoid this issue! Anyone want to file a PR to update that?

@pukapukan
Copy link

you can use //unpkg.com/react-dom@15.6.0/dist/react-dom.min.js inside /node_modules/apollo-server-module-graphiql/dist/renderGraphiQL.js as a quick workaround.

@stubailo
Copy link
Contributor

Looks like that wouldn't fix it: unpkg/unpkg#54

@pukapukan
Copy link

The file on CDN is up again.

@stubailo
Copy link
Contributor

OK let's have any future discussion on #295

@sunwukonga
Copy link

This can also occur if you're sending authorization headers on your browser as you access the /graphiql endpoint. unpkg.com objects to the authorization header and rejects the request.

Since I use auth headers to identify the caller to my endpoint and I still want to test that through graphiql, I did the following:

  1. Turn off the extension that was setting auth headers.
  2. Access the unpkg.com resources that were being rejected (putting it into the cache).
  3. Turn extension back on. Fixed.

The only reason this popped up for me was because I cleared my browser cache.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants