A
A
Alexey Petrov2017-03-03 20:46:06
In contact with
Alexey Petrov, 2017-03-03 20:46:06

Why doesn't VK.Auth.login work in Chrome?

Hello.
I understand with VK API and faced a strange problem.
When trying to log in to a contact

<script type="text/javascript">
  $(document).ready(function() {
    VK.init({
      apiId : *******,
    });
    VK.Auth.login(loginHandler, VK.access.PHOTOS);
    function loginHandler(response) {
      // ...
    }
  });
</script>

everything is fine in Firefox and Opera, but for some reason in Chrome
response = Object {session: null, status: "unknown"}

What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Petrov, 2017-03-04
@Oegir

For some reason, the checkbox "Block data and cookies from third-party sites" was enabled. It seems to be disabled by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question