0.1.3 • Published 4 years ago

hexo-filter-crossorigin v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

hexo-filter-crossorigin

status npm version

Append crossorigin attribute to HTML elements (<img>, <video>, etc).

Why

See https://developers.google.com/web/tools/workbox/guides/handle-third-party-requests#remember_to_opt-in_to_cors_mod.

Config

# _config.yml

filter_crossorigin:
  - name: img
    crossorigin: true
    domains:
      - unpkg.com
    attrs:
      - src
  • name: tag name.
  • crossorigin: true (alias of anonymous) | false | anonymous | use-credentials.
  • domains: optional. If not provided, all elements that match tag name will be affected.
  • attrs: optional. Tag attributes to match domains. Default to src, data-src, href.
0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago