javascript - [JS]Return to index page -


how can return registration page oauth authentication? put url of app(as &redirect_uri=) when user accept authentication, script fails:

error: access 'app://6cb90889-d3dd-4ca7-8bab-ea11831b922d/reg.html#access_token=xxxxxxxxxxx' script denied 

it should close browser , return app! idea?

redirection of url taken care server. server has understand redirect_uri= attribute , need redirect it.

in case of j2ee. done as

public void doget(httpservletrequest request, httpservletresponse response)       throws servletexception, java.io.ioexception {         string contextpath= "http://www.java2s.com";     response.sendredirect(response.encoderedirecturl(contextpath + "/maps"));   } 

let me know if trying someting different.

regards, chandra.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -