FAQ about SourceCraft Sites

What security restrictions are in place in SourceCraft Sites?

In SourceCraft Sites, for security reasons, you cannot do the following:

  • Use service workers, i.e., JavaScript code executed in a browser separately from a web page that can intercept network requests and cache resources. They are used, for example, for PWA applications to run offline.
  • Embed a published web site into frames, e.g., using the <iframe> HTML element.

These restrictions set by the Content-Security-Policy: frame-ancestors 'none'; worker-src 'none'; header are due to hosting sites on a shared domain. You cannot change this policy or make it less strict using the web site's code or HTML markup.

How do I confirm ownership of a SourceCraft Sites website in Yandex Webmaster?

To confirm ownership of a SourceCraft Sites website in Yandex Webmaster:

  1. Create a repository in the organization with the same name as the organization.

  2. In the repository, create a SourceCraft Sites website. It will be available at the following addresses:

    • https://<organization_name>.sourcecraft.site/
    • https://<organization_name>.sourcecraft.site/<organization_name>/
  3. Add the verification meta tag to the site's main page:

    • Register the website in Yandex Webmaster.
    • Select verification by meta tag.
    • Add the meta tag you got to the HTML code of the main page:
    <meta name="yandex-verification" content="<verification_code>" />
    

This will verify all repositories and sites in the organization. Learn more about configuring hosting here.