Skip to content

Commit

Permalink
chore(iam-staging): bug bash on Cloud Auth staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 committed Dec 16, 2024
1 parent e5a09bc commit eff16f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/laboratory/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const cspHeader = `
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
img-src * 'self' data: blob: https://walletconnect.org https://walletconnect.com https://secure.walletconnect.com https://secure.walletconnect.org https://tokens-data.1inch.io https://tokens.1inch.io https://ipfs.io https://appkit-lab.reown.org;
font-src 'self' https://fonts.gstatic.com;
connect-src 'self' https://react-wallet.walletconnect.com https://rpc.walletconnect.com https://rpc.walletconnect.org https://relay.walletconnect.com https://relay.walletconnect.org wss://relay.walletconnect.com wss://relay.walletconnect.org https://pulse.walletconnect.com https://pulse.walletconnect.org https://api.web3modal.com https://api.web3modal.org wss://www.walletlink.org https://o1095249.ingest.sentry.io https://quote-api.jup.ag https://mempool.space;
connect-src 'self' https://react-wallet.walletconnect.com https://rpc.walletconnect.com https://rpc.walletconnect.org https://relay.walletconnect.com https://relay.walletconnect.org wss://relay.walletconnect.com wss://relay.walletconnect.org https://pulse.walletconnect.com https://pulse.walletconnect.org https://api.web3modal.com https://api.web3modal.org https://api-web3modal-staging.walletconnect-v1-bridge.workers.dev wss://www.walletlink.org https://o1095249.ingest.sentry.io https://quote-api.jup.ag https://mempool.space;
frame-src 'self' https://verify.walletconnect.com https://verify.walletconnect.org https://secure.walletconnect.com https://secure.walletconnect.org https://secure.reown.com https://widget.solflare.com/ ${secureSiteDomain};
object-src 'none';
base-uri 'self';
Expand Down
6 changes: 3 additions & 3 deletions packages/siwx/src/configs/CloudAuthSIWX.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConstantsUtil, type CaipNetworkId } from '@reown/appkit-common'
import { type CaipNetworkId } from '@reown/appkit-common'
import {
AccountController,
ApiController,
Expand Down Expand Up @@ -85,11 +85,11 @@ export class CloudAuthSIWX implements SIWXConfig {
key: Key,
params: CloudAuthSIWX.Requests[Key]['body']
): Promise<CloudAuthSIWX.Requests[Key]['response']> {
const { projectId, st, sv } = this.getSDKProperties()
const { st, sv } = this.getSDKProperties()
const token = this.getStorageToken()

const response = await fetch(
`${ConstantsUtil.W3M_API_URL}/auth/v1/${key}?projectId=${projectId}&st=${st}&sv=${sv}`,
`https://api-web3modal-staging.walletconnect-v1-bridge.workers.dev/auth/v1/${key}?projectId=f5b3ae2fcb87d796d3e565dba18047e2&st=${st}&sv=${sv}`,
{
method: RequestMethod[key],
body: params ? JSON.stringify(params) : undefined,
Expand Down

0 comments on commit eff16f3

Please sign in to comment.