V
V
Vady852018-12-09 23:07:18
Classmates
Vady85, 2018-12-09 23:07:18

How to make authorization through APIOK without a redirect?

I use server authorization with a line like
https://connect.ok.ru/oauth/authorize?client_id={c...
I want to authorize the user without reloading and redirecting the current page. I decided to trick myself with the help of a div with a nested IFRAME and made redirects inside the iframe. And I got the result:
Refused to display ' https://connect.ok.ru/oauth/authorize?client_id={c... ' in a frame because it set 'X-Frame-Options' to 'deny'
Clearly, classmates forbid for security reasons to use authorization inside the frame.
Any idea how to log in without redirecting the current page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vady85, 2018-12-12
@Vady85

Thanks everyone! Decided via window.open()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question