Browse Source

Merge branch 'main' into feat/add_asset_profile

pull/2094/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
ce255311ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 23
      apps/api/src/main.ts
  3. 2
      package.json

2
CHANGELOG.md

@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed an issue with the clone functionality of a transaction caused by the symbol search component - Fixed an issue with the clone functionality of a transaction caused by the symbol search component
## 1.283.2 - 2023-06-24 ## 1.283.5 - 2023-06-25
### Added ### Added

23
apps/api/src/main.ts

@ -35,17 +35,20 @@ async function bootstrap() {
// Support 10mb csv/json files for importing activities // Support 10mb csv/json files for importing activities
app.use(bodyParser.json({ limit: '10mb' })); app.use(bodyParser.json({ limit: '10mb' }));
app.use( if (configService.get<string>('ENABLE_FEATURE_SUBSCRIPTION') === 'true') {
helmet({ app.use(
contentSecurityPolicy: { helmet({
directives: { contentSecurityPolicy: {
scriptSrc: ["'self'", "'unsafe-inline'"], // Allow inline scripts directives: {
scriptSrcAttr: ["'self'", "'unsafe-inline'"], // Allow inline event handlers frameSrc: ["'self'", 'https://js.stripe.com'], // Allow loading frames from Stripe
styleSrc: ["'self'", "'unsafe-inline'"] // Allow inline styles scriptSrc: ["'self'", "'unsafe-inline'", 'https://js.stripe.com'], // Allow inline scripts and scripts from Stripe
scriptSrcAttr: ["'self'", "'unsafe-inline'"], // Allow inline event handlers
styleSrc: ["'self'", "'unsafe-inline'"] // Allow inline styles
}
} }
} })
}) );
); }
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY');
const HOST = configService.get<string>('HOST') || '0.0.0.0'; const HOST = configService.get<string>('HOST') || '0.0.0.0';

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "ghostfolio", "name": "ghostfolio",
"version": "1.283.2", "version": "1.283.5",
"homepage": "https://ghostfol.io", "homepage": "https://ghostfol.io",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"scripts": { "scripts": {

Loading…
Cancel
Save