1.0.1 • Published 6 years ago
hexo-filter-auto-crossorigin v1.0.1
hexo-filter-auto-crossorigin
Add crossorigin attribute to all external resources automatically. Read More.
Installations
$ npm i hexo-filter-auto-crossorigin --saveOptions
filter_crossorigin:
- name: script
crossorigin: true
- name: img
crossorigin: true
domains:
- unpkg.com
attrs:
- srcname: 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.