ios - Disqus SSO, "Your API key is not valid on this domain" -
i'm making api call disqus
application in ios
. since users authenticated on website, don't want them authenticate again disqus. disqus has way solve sso (single sign-on). have followed guide here. have checked validation on sso payload , made sample request in console.
but when implement api call application receive :
{ "code":11, "response":"your api key not valid on domain" }
i don't know wrong in code. point me go further ?
there text box in disqus api application settings lets specify domains public api key valid on. error being thrown because referrer , host domains don't match of ones listed in application.
since ios application, must set 'host' , 'referrer' headers match domain listed in application settings. i've confirmed works when using answer:
Comments
Post a Comment