{"code": 11,"response": "Your API key is not valid on this domain"}
--
You received this message because you are subscribed to the Google Groups "Disqus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to disqus-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Disqus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to disqus-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Probably should have mentioned that I reset that access token after posting for obvious reasons.
I assume the recommended usage in a mobile app would be to avoid using the secret key as it can be reverse engineered?
On Wed, Oct 22, 2014 at 12:36 AM, Phil Bayfield <ph...@bayfmail.com> wrote:Probably should have mentioned that I reset that access token after posting for obvious reasons.Hah, yeah. That said your private key was still the same (that's how I found the API app record) so I wanted to play safe just in case. If you think that was not a good move though, I'm open to feedback :)
I assume the recommended usage in a mobile app would be to avoid using the secret key as it can be reverse engineered?Indeed. You should never reveal your secret key in a publicly accessible resource.
>Solved the problem, It turns out the problem was postman and it doesn't actually override the referrer header, but I got it working from Android.Did you find a way to override it or simply used your secret key? (sorry not clear from the sentence above). If it doesn't override the referrer header, what is the referrer passed with the request? May be you can add the domain for that to the list?
Also, you probably know but there's this stupid typo with that header: http://en.wikipedia.org/wiki/HTTP_referer#Origin_of_the_term_referer - So may be you tried to override `referrer` where postman was sending `referer` and they got mixed or something?
Best,--
BYK
What I meant was that I used the public key with referrer in Android and it worked without issue. Aware of the spelling issue of the referrer header and Postman uses it correctly miss-spelt but in fact the header never gets sent, I think it's some sort of security feature in Chrome to avoid referrer spoofing.