You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@forge/csp

Package Overview
Dependencies
Maintainers
2
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/csp - npm Package Compare versions

Comparing version

to
2.1.1-experimental-2a9dda4

12

CHANGELOG.md
# @forge/csp
## 2.1.1
### Patch Changes
- 907ce6c: Add navigate-to CSP directive
## 2.1.1-next.0
### Patch Changes
- 907ce6c: Add navigate-to CSP directive
## 2.1.0

@@ -4,0 +16,0 @@

2

out/csp/csp-injection-service.js

@@ -44,2 +44,3 @@ "use strict";

const styleSrc = ["'self'", ...this.getExistingCSPDetails(types_1.ExternalCspType.STYLE_SRC, existingCSPDetails)].join(' ');
const navigateTo = ["'self'"];
return [

@@ -54,2 +55,3 @@ `default-src ${defaultSrc}`,

`script-src ${scriptSrc}`,
`navigate-to ${navigateTo}`,
`style-src ${styleSrc} https://unpkg.com/@atlaskit/tokens@0.10.30/css/atlassian-light.css https://unpkg.com/@atlaskit/tokens@0.10.30/css/atlassian-dark.css`,

@@ -56,0 +58,0 @@ `form-action 'self'`,

6

package.json
{
"name": "@forge/csp",
"version": "2.1.0",
"version": "2.1.1-experimental-2a9dda4",
"description": "Contains the CSP configuration for Custom UI resources in Forge",

@@ -14,4 +14,4 @@ "main": "out/index.js",

"devDependencies": {
"@forge/cli-shared": "^3.4.0",
"@forge/manifest": "^4.5.2",
"@forge/cli-shared": "3.7.0-next.3-experimental-2a9dda4",
"@forge/manifest": "4.7.1-next.0-experimental-2a9dda4",
"@types/jest": "^29.1.2"

@@ -18,0 +18,0 @@ },

Sorry, the diff of this file is not supported yet