aiware-object-to-csp

This library was generated with Nx.

Usage no npm install needed!

<script type="module">
  import aiwareObjectToCsp from 'https://cdn.skypack.dev/aiware-object-to-csp';
</script>

README

object-to-csp

This library was generated with Nx.

It converts given CSP Object to HTML CSP String. Objects are used in object structure to comply with the current config inheritence model.

Input

  "Content-Security-Policy": {
    "default-src": {
      "'self'": null,
      "*.veritone.com": null,
      "*.aiware.com": null
    },
  }

Output

<meta http-equiv="Content-Security-Policy" content="default-src 'self' *.veritone.com *.aiware.com;"/>