Welcome Guest, Not a member yet? Register   Sign In
to use / or to use \ ?
#5

(This post was last modified: 09-21-2018, 05:53 AM by richb201.)

Yeah Insite, I got that one. I have been fiddling with the headers but I just can't get it right. This is a Post and does not need pre-flight from my understanding. That is because

 "permissions": [
   "activeTab",
   "identity",
   "identity.email",
       "http://localhost/*.*",
"https://www.substantiator.com/*.*",    <<<<<<<here
"https://substantiator.com/*",
"geolocation",
"storage",
"tabs"
 ],

So my plan right now is to use Wireshark (initially on the browser PC) to make sure than the headers are AOK. If that doesn't work, i will stick it up on the linux server through ssh. Something is strange, but I can't really see it since the payload is encrypted. I am getting the same strange error in  Apache error.log

[client 69.124.178.164:49166] malformed header from script 'index.php': Bad header: {"0":["{choose}","IOS","Mac","

What does index.php have to do with this? That is my return buffer back to the extension, but why would it be in the header?

        $this->output
             ->set_content_type('application/json')
             ->set_header("Access-Control-Allow-Origin", "*")
             ->set_output(json_encode($table));
proof that an old dog can learn new tricks
Reply


Messages In This Thread
to use / or to use \ ? - by richb201 - 09-20-2018, 01:55 PM
RE: to use / or to use \ ? - by skunkbad - 09-20-2018, 03:57 PM
RE: to use / or to use \ ? - by richb201 - 09-20-2018, 11:32 PM
RE: to use / or to use \ ? - by InsiteFX - 09-21-2018, 04:00 AM
RE: to use / or to use \ ? - by richb201 - 09-21-2018, 04:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB