Skip to content

Commit

Permalink
🐛 Fix CSP (#2840)
Browse files Browse the repository at this point in the history
  • Loading branch information
moisout authored Jun 15, 2024
1 parent d63bfab commit bb58f03
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
create-release:
name: Create Release

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

name: ${{ matrix.command }}
timeout-minutes: 60
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

e2e:
name: e2e tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
e2e:
name: daily e2e tests
timeout-minutes: 60
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand Down
9 changes: 7 additions & 2 deletions server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ const bootstrap = async () => {
useDefaults: true,
directives: {
defaultSrc: [`'self'`, `blob:`, `data:`],
scriptSrc: [`'self'`, `blob:`, `https: 'unsafe-eval'`, `https: 'unsafe-inline'`],
connectSrc: [`'self'`, '*.viewtube.io'],
scriptSrc: [
`'self'`,
`blob:`,
`https: 'unsafe-eval'`,
`https: 'unsafe-inline'`,
'*.viewtube.io'
],
scriptSrcAttr: null
}
}
Expand Down

0 comments on commit bb58f03

Please sign in to comment.