Skip to content

Commit e33c042

Browse files
Csp (#12)
* wip csp * initial csp * include alchemy and gfonts * add walletconnect relay to csp * more WC fixes * cache node modules for faster CI * Revert "Merge branch 'main' into csp" This reverts commit 6904644, reversing changes made to c700129. * Update _headers * Update playwright.yml * Update test.yml * fix e2e * main * add safe to frame ancestors * typo * added missing origins * add manifest * add CB wallet CSP * add walletlink wss * add icons * add walletconnect * add org too * remove claim domain * remove csp policies * fix * disallow unsafe-inline * add https://fonts.googleapis.com --------- Co-authored-by: sugh01 <[email protected]>
1 parent 74765e5 commit e33c042

File tree

7 files changed

+30
-8
lines changed

7 files changed

+30
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121

22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
2225
- name: Setup Node
2326
uses: actions/setup-node@v4
2427
with:
2528
node-version: lts/*
29+
cache: 'pnpm'
2630

2731
- name: Install pnpm
2832
run: npm install -g pnpm
@@ -34,7 +38,7 @@ jobs:
3438
run: cd apps/web && pnpm exec playwright install --with-deps
3539

3640
- name: Install wait-on
37-
run: npm install -g wait-on
41+
run: pnpm install -g wait-on
3842

3943
- name: Start web application and wait
4044
run: |

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@v4
2626

27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
2730
- name: Setup Node
2831
uses: actions/setup-node@v4
2932
with:
3033
node-version: lts/*
31-
32-
- name: Install pnpm
33-
run: npm install -g pnpm
34+
cache: 'pnpm'
3435

3536
- name: Install dependencies
3637
run: pnpm install

apps/web/playwright/fixtures/accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ export const createAccounts = () => {
7878
return privateKeys[index]
7979
},
8080
}
81-
}
81+
}

apps/web/playwright/fixtures/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ const tenderly = defineChain({
2727
rpcUrls: {
2828
default: {
2929
http: [
30-
'https://virtual.mainnet.rpc.tenderly.co/c7a54a5e-d744-45e1-a98d-1b814b81d93d',
30+
'https://virtual.mainnet.rpc.tenderly.co/42ae08fb-9b54-410b-8c4a-e9ad3334b8ee',
3131
],
3232
},
3333
},
3434
blockExplorers: {
3535
default: {
3636
name: 'Explorer',
37-
url: 'https://virtual.mainnet.rpc.tenderly.co/c7a54a5e-d744-45e1-a98d-1b814b81d93d',
37+
url: 'https://virtual.mainnet.rpc.tenderly.co/42ae08fb-9b54-410b-8c4a-e9ad3334b8ee',
3838
},
3939
},
4040
contracts: {

apps/web/public/_headers

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*
2+
Content-Security-Policy: default-src 'self' https://delegate.ens.domains https://*.multi-delegate.pages.dev https://multi-delegate.pages.dev; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com https://fonts.googleapis.com; object-src 'none'; frame-src 'self' https://verify.walletconnect.com https://verify.walletconnect.org; frame-ancestors 'self' https://app.safe.global; connect-src 'self' *; img-src 'self' data: blob: *;

apps/web/public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "ENS Multi-Delegate App",
3+
"short_name": "ENS Multi-Delegate",
4+
"theme_color": "#5298FF",
5+
"background_color": "#F6F6F6",
6+
"display": "standalone",
7+
"description": "ENS Multi-Delegate App",
8+
"icons": [
9+
{
10+
"src": "https://ens.domains/favicon.png",
11+
"sizes": "64x64 32x32 24x24 16x16",
12+
"type": "image/png"
13+
}
14+
]
15+
}

apps/web/tests/manageStrategy.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ test('get started link', async ({ page, login, homePage }) => {
3939
'input[placeholder="ENS name or Ethereum address"]',
4040
'leonardo'
4141
)
42-
})
42+
})

0 commit comments

Comments
 (0)