Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): support for CSP nonces #3823

Merged
merged 16 commits into from
Jan 10, 2023
Merged

feat(runtime): support for CSP nonces #3823

merged 16 commits into from
Jan 10, 2023

Commits on Oct 27, 2022

  1. wip(compiler/runtime): ability to set nonce on runtime platform

    This commit adds the ability to set a `nonce` value on the runtime platform object. This also introduces the consumption of this value and setting of the `nonce` attribute for generated `style` tags in `dist-custom-elements`.
    tanner-reits committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    2c79743 View commit details
    Browse the repository at this point in the history
  2. wip(compiler/runtime): setNonce behavior for dist target

    This commit adds the `setNonce` definition to the generated output for the `dist` output target. This also sets the `nonce` attribute on the style tag responsible for invisible pre-hydration styles.
    tanner-reits committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    81b099a View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. Configuration menu
    Copy the full SHA
    2af9abc View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. chore(): nonce function/declaration code comments

    This commit adds some comments to the internal and generated helper function code for apply nonce attributes.
    tanner-reits committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    9b2eeea View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Configuration menu
    Copy the full SHA
    545f359 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. Configuration menu
    Copy the full SHA
    ea0db1b View commit details
    Browse the repository at this point in the history
  2. chore(): run prettier

    tanner-reits committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    ee06584 View commit details
    Browse the repository at this point in the history
  3. fix(): update unit tests

    tanner-reits committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    70b0fab View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2022

  1. Configuration menu
    Copy the full SHA
    c6f9a01 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7891b60 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. chore(): remove CSP from IE polyfills

    CSP nonces aren't supported by IE so there is no reason to add support in the polyfills
    tanner-reits committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    93dfedd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d9ffbd View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. Configuration menu
    Copy the full SHA
    56a673f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3a8da8 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. feat(runtime): updates nonce fallback to use meta tag instead of wind…

    …ow (#3955)
    
    * feat(runtime): updates nonce fallback to use meta tag instead of window
    
    This commit updates our CSP nonce support logic to allow implementers to leverage a meta tag in the DOM head for setting nonce values during the Stencil runtime rather than pulling the value off of the global window object
    
    * fix(): PR feedback
    
    * feat(utils): update return type fallback to `undefined` only
    tanner-reits authored Jan 10, 2023
    Configuration menu
    Copy the full SHA
    7d6d684 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    810c30f View commit details
    Browse the repository at this point in the history