react-native-static-server
react-native-static-server copied to clipboard
Use custom http headers
Hi. Is it possible to add custom http headers? I want to add Access-Control-Allow-Origin: *
to server response.
Hi, this problem is solved. I have the same needs
I believe that if you serve your files using react-native-webview, you can set the custom headers, as well as cookies, from there: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#working-with-custom-headers-sessions-and-cookies