New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@forge/csp

Package Overview
Dependencies
Maintainers
2
Versions
178
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 2.1.2 to 2.1.3-next.0

6

CHANGELOG.md
# @forge/csp
## 2.1.3-next.0
### Patch Changes
- 6d9b010: Replace unpkg.com in the Content Security Policy for stylesheets in Forge custom UI with the Forge global URL.
## 2.1.2

@@ -4,0 +10,0 @@

8

out/csp/csp-injection-service.js

@@ -43,3 +43,7 @@ "use strict";

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

@@ -56,3 +60,3 @@ return [

`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`,
`style-src ${styleSrc}`,
`form-action 'self'`,

@@ -59,0 +63,0 @@ `sandbox allow-downloads allow-forms allow-modals allow-pointer-lock allow-same-origin allow-scripts`,

{
"name": "@forge/csp",
"version": "2.1.2",
"version": "2.1.3-next.0",
"description": "Contains the CSP configuration for Custom UI resources in Forge",

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

"devDependencies": {
"@forge/cli-shared": "3.11.0",
"@forge/manifest": "4.10.0",
"@forge/cli-shared": "3.11.1-next.0",
"@forge/manifest": "4.11.0-next.0",
"@types/jest": "^29.1.2"

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc