DroidKaigi / conference-app-2020

The Official Conference App for DroidKaigi 2020 Tokyo
https://droidkaigi.jp/2020/en/
Apache License 2.0
774 stars 327 forks source link

Web development environment support #641

Closed itome closed 4 years ago

itome commented 4 years ago

Kind (Required)

Overview (Required)

I'm developing unofficial flutter app for droidkaigi and it's also supporting web, but api request blocked by CORS. Can this project support web local development environment?

Links

https://github.com/itome/droidkaigi_flutter

takahirom commented 4 years ago

Thanks. Probably we should talk 🙏 Do you have any opinion @jmatsu ?

jmatsu commented 4 years ago

I'm unsure if it's feasible because of the hosting service. Honestly speaking, I cannot have enough time to work on the API side by the event date, for now.

I'm thinking one workaround is to use a proxy server for CORS. It may work at least during your development. However, please note that we cannot guarantee anything of the CORS proxy services and what will happen while using them. I apologize.

itome commented 4 years ago

Thank you for your quick reply! I'll try proxy server.

jmatsu commented 4 years ago

@itome I could see curl -v 'https://api.droidkaigi.jp/2020/contributors' > /dev/null returned a CORS header that allows all origins but it caused redirecting to an URL that has an insecure protocol. I'm unsure the problem you've faced is CROS or mixed content though, please try to add / to the URLs to be called like https://api.droidkaigi.jp/2020/contributors/