title: yandex Structured data validator API
body: <p>I try to create corrected self-exercise on microdata with Structured data validator API of Yandex. I need to send yandex api the content of textarea to know if it contain the good microdata.
  I read developer's guide and i decided to use validation for html with ajax request.
  <a href="https://tech.yandex.com/validator/doc/dg/concepts/html-validation-docpage/" rel="nofollow noreferrer">https://tech.yandex.com/validator/doc/dg/concepts/html-validation-docpage/</a></p>
  
  <p>My code :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){
      $('#valid').click(function(){
          $data=$('#data').val();
          $apikey="myapikey";
          $lang="en";
          $pretty="true";
          $id="1";
          $only_errors="false";
  
          $url="https://validator-api.semweb.yandex.ru/v1.1/document_parser?apikey="+$apikey+"&amp;lang="+$lang+"&amp;pretty="+$pretty+"&amp;id="+$id+"&amp;only_errors="+$only_errors;
          
          $.ajax({
              url: $url,
              type: 'POST',
              dataType: 'json',
              data: $data,
              success: function (data) {
                  //
  
              },
              error: function (error) {
                  console.log(error);
  
              }
          });
      });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;textarea id="data" name="textarea"
            rows="10" cols="50"&gt;
  text with microdata
  &lt;/textarea&gt;
  &lt;button id="valid"&gt;Envoyer&lt;/button&gt;
  &lt;textarea id="reponse"&gt;
  
  &lt;/textarea&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have a "No 'Access-Control-Allow-Origin' header is present on the requested resource". </p>
  
  <p>I don't understand how i can do an ajax request with this api because  </p>
  
  <ul>
  <li>I need use POST so i can't use jsonp </li>
  <li>I can't work server side so i can't modify header</li>
  </ul>
  
  <p>Can you help me ?</p>