caiobiodere / cordova-template-framework7-vue-webpack

Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Apache License 2.0
621 stars 154 forks source link

Live reload & API requests #170

Closed VisualMafia closed 5 years ago

VisualMafia commented 5 years ago

I use last version. Live reload & API requests not working. Only Request Method: OPTIONS How can I fix this so that all types of requests are available, as in a simple build?

caiobiodere commented 5 years ago

Oh, that's weird, Could you explain to us how are you building and using those API's, please?

VisualMafia commented 5 years ago

I use Axios. If i build apk or IOS, not problems. Problem only If i run this (sample): cordova run android -- --lr

caiobiodere commented 5 years ago

is that working in iOS devices? cordova run ios -- --lr

VisualMafia commented 5 years ago

No. I use default webview.

VisualMafia commented 5 years ago

If add this to server, then working: access-control-allow-headers: authorization,Authorization,access-control-allow-origin,Access-Control-Allow-Headers