S
S
SerJMara2017-07-20 22:23:05
JavaScript
SerJMara, 2017-07-20 22:23:05

Share button in Ok - No access to resource?

Share button Odnoklassniki, no access to the resource, what should I do? - this answer didn't help.
Randomly appears the error "No access to the resource"
Appears for all colleagues, in random order. I can share 5-10 links and it stops working, sometimes it doesn’t work right away. Site on https, no errors.
Help me please. Here is the ball code:

!function (d, id, did, st) {
        var js = d.createElement("script");
        js.src = "//connect.ok.ru/connect.js";
        js.onload = js.onreadystatechange = function () {
          if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
            if (!this.executed) {
              this.executed = true;
              setTimeout(function () {
                OK.CONNECT.insertShareWidget(id,did,st);
              }, 0);
            }
          }};
        d.documentElement.appendChild(js);
      }(document,"ok_shareWidget","<моя ссылка>","{width:190,height:30,st:'rounded',sz:20,ck:2}");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question