hexo-filter-auto-crossorigin

1.0.1 • Public • Published

hexo-filter-auto-crossorigin

npm version npm license travis status npm download

Add crossorigin attribute to all external resources automatically. Read More.

Installations

$ npm i hexo-filter-auto-crossorigin --save

Options

filter_crossorigin:
  name: script
    crossorigin: true
  name: img
    crossorigin: true
    domains:
      - unpkg.com
    attrs:
      - src
  • name: tag name. Only given tags will be processed.
  • crossorigin: true (alias of anonymous) | false | 'anonymous' | 'use-credentials'.
  • domains: optional. Only matched domains will be processed. If not provided, all external resources will be processed.
  • attrs: optional. Tag attributes to match domains, only given attributes will be used. If not provided, will use src, data-src, href.

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i hexo-filter-auto-crossorigin

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.95 kB

    Total Files

    5

    Last publish

    Collaborators

    • sukkaw