twitter-lite icon indicating copy to clipboard operation
twitter-lite copied to clipboard

The library says it can be used in the browser but twitter does not support cors

Open simonjcarr opened this issue 5 years ago • 2 comments

I have tried using twitter-lite in the browser, the documentation says it is supported, but I get a cors error. Am I missing something?

There is no mention of cors in the documentation, so I assume I am on the only one with this problem.

Access to XMLHttpRequest at 'https://stream.twitter.com/1.1/statuses/filter.json' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

simonjcarr avatar Aug 12 '20 14:08 simonjcarr

Hi @simonjcarr, seems like there's a lot we need to change to support the browser again. If you'd like to look into this we'd love your help. Thanks!

peterpme avatar Aug 18 '20 03:08 peterpme

Would you like me to change the documentation and take out references to browser support?

On Tue, 18 Aug 2020 at 04:36, Peter Piekarczyk [email protected] wrote:

Hi @simonjcarr https://github.com/simonjcarr, seems like there's a lot we need to change to support the browser again. If you'd like to look into this we'd love your help. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/draftbit/twitter-lite/issues/132#issuecomment-675229975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALH6TXWD3QX2PRXGLZ67H3SBHZNFANCNFSM4P4Y4LSA .

simonjcarr avatar Aug 18 '20 10:08 simonjcarr