CORS cookie credentials from mobile WebView loaded locally with file://

前端 未结 6 2414
半阙折子戏
半阙折子戏 2020-11-29 03:24

Bear with me, this one needs a bit of explanation.

I am helping to build a hybrid mobile web app. The main codebase is HTML5 and JavaScript, which will be wrapped in

6条回答
  •  青春惊慌失措
    2020-11-29 04:16

    I imagine that if you are creating a hybrid application you are using cordova. If that is the case you don't need CORS you just need to white list the domains you are going to access.

    http://docs.phonegap.com/en/3.0.0/guide_appdev_whitelist_index.md.html

提交回复
热议问题