Skip to content

Commit

Permalink
Fix: Add CSP url (#2012)
Browse files Browse the repository at this point in the history
# Motivation

Add OC swap canister URL to CSP rules.

# Changes

* Add url in CSP rules

# Tests

Not applicable
  • Loading branch information
lmuntaner authored Mar 2, 2023
1 parent 7e69e9a commit 8f4090e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Every Pull Request needs unit tests.

After installing the project, you can run the test suite:

```
```bash
npm run test
```

Expand Down
3 changes: 3 additions & 0 deletions frontend/scripts/build.csp.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ const cspConnectSrc = () => {
process.env.VITE_HOST,
process.env.VITE_GOVERNANCE_CANISTER_URL,
process.env.VITE_LEDGER_CANISTER_URL,
// TODO: solve with a worker
// Used for the metrics of OC launch
"https://2hx64-daaaa-aaaaq-aaana-cai.raw.ic0.app",
];

if (isAggregatorCanisterUrlDefined) {
Expand Down

0 comments on commit 8f4090e

Please sign in to comment.