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:

how set http header fields in objective-c?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -