samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.18k stars 1.64k forks source link

EventSource demo site not working #113

Closed markus-walther-tutti closed 6 years ago

markus-walther-tutti commented 6 years ago

https://simpl.info/eventsource/ fails to show activity due to Failed to load https://sse.now.sh/: Redirect from 'https://sse.now.sh/' to 'https://zeit.co/hemanth/sse-now/vhtqsczurm?redirect=1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://simpl.info' is therefore not allowed access.

samdutton commented 6 years ago

Thanks for the heads-up!

@hemanth: fancy doing a PR :)?

hemanth commented 6 years ago

No clue in the logs, it was working fine the last time I checked it, will work with now's team and get back.

hemanth commented 6 years ago

It's back!

samdutton commented 6 years ago

Thanks Hemanth!

On 3 November 2017 at 05:30, hemanth.hm notifications@github.com wrote:

It's back!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samdutton/simpl/issues/113#issuecomment-341625283, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMhqpyIJ-Vti3MpPa1i2pOniKjF9Japks5syqTdgaJpZM4QPouj .

samdutton commented 6 years ago

Hi @hemanth — getting errors for this again 😢.

hemanth commented 6 years ago

@samdutton still seeing the same?

samdutton commented 6 years ago

@hemanth

I haven't investigated, but seeing this error:

Failed to load https://sse.now.sh/: Request header field Cache-Control is not allowed by Access-Control-Allow-Headers in preflight response.

hemanth commented 6 years ago

@samdutton This fiddle works fine.

Maybe something to do with now //cc @leo