matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

How to use HTTP/2? #117

Closed L-x-C closed 7 years ago

L-x-C commented 7 years ago

Is there a way to use HTTP/2 when fetching data?

hansottowirtz commented 7 years ago

This has nothing to do with this library, you need to configure your webserver to support ajax. For nginx you can use this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-16-04