Skip to content

Commit

Permalink
add newer quarters to testdata and change CSP to allow image blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Nov 21, 2024
1 parent 6b9a56b commit bec586c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/main/java/ch/puzzle/okr/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ private HttpSecurity setHeaders(HttpSecurity http) throws Exception {
+ "script-src 'self' 'unsafe-inline';" + " style-src 'self' 'unsafe-inline';"
+ " object-src 'none';" + " base-uri 'self';"
+ " connect-src 'self' https://sso.puzzle.ch http://localhost:8544;"
+ " font-src 'self';" + " frame-src 'self';" + " img-src 'self' data: ;"
+ " manifest-src 'self';" + " media-src 'self';" + " worker-src 'none';"))
+ " font-src 'self';" + " frame-src 'self';"
+ " img-src 'self' data: blob:;" + " manifest-src 'self';"
+ " media-src 'self';" + " worker-src 'none';"))
.crossOriginEmbedderPolicy(coepCustomizer -> coepCustomizer
.policy(CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy.REQUIRE_CORP))
.crossOriginOpenerPolicy(coopCustomizer -> coopCustomizer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ values (1, 'GJ 22/23-Q4', '2023-04-01', '2023-06-30'),
(8, 'GJ 23/24-Q3', '2024-01-01', '2024-03-31'),
(9, 'GJ 23/24-Q4', '2024-04-01', '2024-06-30'),
(10, 'GJ 24/25-Q1', '2024-07-01', '2024-09-30'),
(11, 'GJ 24/25-Q2', '2024-10-01', '2024-12-31'),

(199, 'Backlog', null, null);

insert into team (id, version, name)
Expand Down

0 comments on commit bec586c

Please sign in to comment.