Skip to content

No Access Control Allow Origin header #36

Open

Description

@vardhan1990

With the following steps:
image

I get this error:
image

This is per the example on your page. What is wrong?

Activity

  1. rychkog commented on Mar 12, 2016

    @rychkog

    +1

  2. tmnone commented on Mar 14, 2016

    @tmnone

    +1

  3. ZachLiuGIS commented on Mar 22, 2016

    @ZachLiuGIS

    Have the same issue.

  4. lorenzosignoretti commented on Apr 16, 2016

    @lorenzosignoretti

    +1 here. Anyone found a solution?

  5. davefedele commented on Jun 7, 2016

    @davefedele

    How are you running your code? If you're running it off disk from a compiled bundle (aka not from a server on http) this is the cause of the problem because it is a cross origin request. You can't change protocols going from file to http (twitter's url). If so, try running this with a simple python server first from the directory where your code is:

    python -m SimpleHTTPServer 8080

    then in your web browser navigate to:

    localhost:8080

    You should be able to pick your index.html and see your page

    If not, then can you provide more info as to how you are running your code?

  6. davinanaya commented on Mar 24, 2017

    @davinanaya

    I’m working with react js and I’m using TwitterJSClient
    http://localhost:3000
    I have the same issue @vardhan1990

  7. flavalcode commented on Jun 14, 2017

    @flavalcode

    I'm working with react js too
    http://localhost:8000
    and I have the same issue @vardhan1990 @davinanaya

  8. EranOV23 commented on Aug 10, 2017

    @EranOV23

    +1 Anyone found a solution?

  9. iamsaksham commented on Aug 24, 2017

    @iamsaksham

    Any solution yet?

  10. MovsesMesropyan commented on Dec 11, 2017

    @MovsesMesropyan

    +1

  11. nimaiwalsh commented on Dec 14, 2017

    @nimaiwalsh

    +1

  12. darvid7 commented on Apr 1, 2018

    @darvid7

    +1

  13. markcorrea commented on May 7, 2018

    @markcorrea

    +1

  14. fclaussen commented on Oct 19, 2018

    @fclaussen

    +1

  15. elharony commented on Mar 2, 2019

    @elharony

    Did anyone find a solution yet? :)

  16. DmitryMironchenko commented on Mar 5, 2019

    @DmitryMironchenko

    +1

  17. elharony commented on Mar 8, 2019

    @elharony

    Well, I've fixed it (But I used Twit instead, because of the current one's bad documentation/structure).

    What's happening?
    Twitter API don't allow us to get any data using a Client-Side Script, it has to be sent via Server-Side Script.

    How to fix it?
    You MUST use something like NodeJS to accomplish it, with the same code, it will work pefectly fine!
    I've used CodeSandbox to show you a Live Preview (You can fork it)

    *Don't forget to replace the XXXX with the actual values, then Refresh, and you will see the results via the Terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions