Skip to content

Commit

Permalink
Merge pull request #1161 from izaera/CSP-loader
Browse files Browse the repository at this point in the history
fix(amd-loader): return configured CSP nonce when requested
  • Loading branch information
izaera authored Aug 24, 2023
2 parents 3fda236 + 50de2dd commit ec873d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/amd-loader/src/loader/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ export default class Config {
return this._paths;
}

get nonce() {
return this._config.nonce;
}

/**
* Adds a module to the configuration with default field values if it
* doesn't exist. Otherwise, throws an exception.
Expand Down

0 comments on commit ec873d7

Please sign in to comment.