Comments (10)
@sgaseretto you are opening page from file-system, that's why //
in the url is treated as file:///
.
To fix the issue add http://
to script urls:
<script src="https://cdn.jsdelivr.net/react/15.4.2/react.min.js"></script>
<script src="https://cdn.jsdelivr.net/react/15.4.2/react-dom.min.js"></script>
and same for other scripts
I have updated the example /example/index.html@master
from graphql-voyager.
@sgaseretto If you just want to use it locally, try our demo:
https://apis.guru/graphql-voyager/
You can select "Custom introspection" like here:
from graphql-voyager.
@sgaseretto I updated example to use only CDN links:
https://github.com/APIs-guru/graphql-voyager/blob/master/example/index.html
Can you please test it?
from graphql-voyager.
I just added my endpoint http://127.0.0.1:8000/graphql
again to the new code and it still doesn't work. Probably there is something else I need to do, but I don't know what
from graphql-voyager.
@sgaseretto Can you open dev tools and make a screenshot of the console?
from graphql-voyager.
@sgaseretto If you use HTTP you probably need to remove this line:
credentials: 'include',
from graphql-voyager.
This are the errors I'm getting
from graphql-voyager.
You were right! Now it seems I'm having a problem with my server because I't doesn't get the instrospection
from graphql-voyager.
@sgaseretto It's because you are opening HTML as file that's why browser can't set Origin
header.
You should host it somewhere, e.g. run local http server python -m SimpleHTTPServer
http://2ality.com/2014/06/simple-http-server.html
from graphql-voyager.
I'm closing this stale issue.
from graphql-voyager.
Related Issues (20)
- Import from local file instead of cdn in middlewares HOT 1
- Uncaught TypeError: renderVoyager is not a function
- Introducing semantic release HOT 3
- Blank screen when clicking on object type.
- Update example index.html: change init to renderVoyager
- Blank screen when switching between object types, input types, queries and mutations.
- How to use a schema instead of an introspection query in index.html? HOT 2
- Middleware HTML broken in version 2.0.0
- Apollo has changes the support for middleware
- Blank screen with React error when clicking on specific nodes
- Error: Unknown error HOT 1
- Latest NPM publish does not include render-voyager-page.js fix from #357 HOT 7
- Changing Schema with SDL Marks Types and Fields as Deprecated HOT 2
- NPM 2.0.0 version has major code problems HOT 1
- Error resolving dependency for React on npm install
- Voyager Breaks for Huge Schemas
- TypeError: Cannot read properties of undefined (reading 'name') HOT 1
- Support prebuilt SVG graph
- Node 20 is the current LTS
- White screen with error in console: Can not convert data url with MIME type:text/plain;charset=utf8 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-voyager.