From 12db47680b825f1735fc69784c143401a24cc9a9 Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 20 Jan 2023 11:03:30 +0100 Subject: [PATCH 1/2] chore: fixing api-docs Signed-off-by: blam --- plugins/api-docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/api-docs/README.md b/plugins/api-docs/README.md index bea820cb61..27e19b218d 100644 --- a/plugins/api-docs/README.md +++ b/plugins/api-docs/README.md @@ -164,6 +164,7 @@ This also may require you to adjust `Content Security Policy` header settings of ```yaml script-src: - "'self'" + - "'unsafe-eval'" # this is required for scaffolder usage, and ajv validation. - "'sha256-GeDavzSZ8O71Jggf/pQkKbt52dfZkrdNMQ3e+Ox+AkI='" # oauth2-redirect.html ``` From 60996f8aba6239c72e147dcb0ce00b332e2b870d Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 20 Jan 2023 11:22:25 +0100 Subject: [PATCH 2/2] chore: add changeset Signed-off-by: blam --- .changeset/gold-lemons-eat.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/gold-lemons-eat.md diff --git a/.changeset/gold-lemons-eat.md b/.changeset/gold-lemons-eat.md new file mode 100644 index 0000000000..8d9c0118b1 --- /dev/null +++ b/.changeset/gold-lemons-eat.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-api-docs': patch +--- + +Updating the readme with better `csp` instructions