Giter Club home page Giter Club logo

Comments (10)

RomanHotsiy avatar RomanHotsiy commented on May 1, 2024 2

@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.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024 1

@sgaseretto If you just want to use it locally, try our demo:
https://apis.guru/graphql-voyager/
You can select "Custom introspection" like here:
image

from graphql-voyager.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024

@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.

sgaseretto avatar sgaseretto commented on May 1, 2024

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.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024

@sgaseretto Can you open dev tools and make a screenshot of the console?

from graphql-voyager.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024

@sgaseretto If you use HTTP you probably need to remove this line:

credentials: 'include',

from graphql-voyager.

sgaseretto avatar sgaseretto commented on May 1, 2024

This are the errors I'm getting
captura de pantalla 2018-03-21 a la s 19 17 21

from graphql-voyager.

sgaseretto avatar sgaseretto commented on May 1, 2024

You were right! Now it seems I'm having a problem with my server because I't doesn't get the instrospection
captura de pantalla 2018-03-22 a la s 09 43 54

captura de pantalla 2018-03-22 a la s 10 12 34

While I figure out what's happening (maybe something related to CORS, despite my backend accepts requests from any IP) how can I modify the bundled version so, instead of fetching, I can embed in it my introspection and visualize it? Maybe this is a dumb question but I'm new to javascript

from graphql-voyager.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024

@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.

IvanGoncharov avatar IvanGoncharov commented on May 1, 2024

I'm closing this stale issue.

from graphql-voyager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.