tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
178 stars 116 forks source link

i know the reason for CORS or HTTP 404 and need help #21

Closed int3rnet closed 7 years ago

int3rnet commented 8 years ago

Dear all and developer for the tools

this tool is very helpful for me and just works fine in ios but the android not ver well

i saw all the issue here and all of them like my problem (ajax call failed , CORS ..etc)

and i used all the CORS in the server and client side.

i figured out the the tool send OPTION request to the server instead of GET or POST

i didn't used OPTION ever so how come it's arrive with this request

please see my apache logs after ajax calls

5.156.xxxx- - [01/Jul/2016:05:48:53 -0700] "OPTIONS /sabaak-server/sql_codes_v2_2.php/getAllLaboor HTTP/1.1" 404 384 "http://localhost/google_test.html" "Mozilla/5.0 (Linux; Android 4.4.4; SM-J110H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36"

this ajax call i used GET no OPTIONS in javascript and that's why it's return HTTP 404 because they aren't any api using OPTIONS.

so can you please (tkyaji) help us in this problem.

i stop my application in play store just waiting for your help :(