Origin: file:// on Post request

  • Hello everyone.

    I’m having this problem, which I’m sure should be easy to solve, but I can’t seam to find a way to fix it.

    When I’m performing a POST request on my android device I’ getting 403 from all my servers. I noticed by snooping the request that I’m sending the Origin as file://. I’m pretty sure this is the problem.

    I’m getting the 403 from nginx server and from a Play Platform. It is not really an option to change those.

    Any help you can provide?

  • In fact, I’m not really sure that that is the problem.

    I also noticed that the compile version of the quasar app is not sending the OPTIONS request before the post.

    In the dev version, that I run in the browser, that is sending the OPTIONS request.

  • I assume you are on production, if you do, you’ll need to sign your apk to make it work follow this https://quasar-framework.org/guide/cordova-publishing-to-store.html.

  • Hi,
    I am develoibg an Electron Desktop app and I have used electron package and facing the same issue, i am not sure what is causing this,
    @metalsadman i have read that code signing is not needed or is not necessary to just build and test,
    @syshex how did you solve this issue?
    Can anyone please tell me whats wrong?


Log in to reply