Skip to content

Commit

Permalink
fix csp for websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Jan 23, 2024
1 parent 01bb090 commit 3d68325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ status = 200
default-src 'self';
script-src 'self' 'nonce-f51b9742' https://plausible.10bedicu.in;
style-src 'self' 'nonce-7e14cf80';
connect-src 'self' https://sentry.io https://plausible.10bedicu.in https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
connect-src 'self' ws: wss: https://sentry.io https://plausible.10bedicu.in https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
img-src 'self' blob: data: https://cdn.coronasafe.network https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
media-src 'self' blob: data: https://cdn.coronasafe.network https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
object-src 'self' blob: https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default defineConfig({
"Content-Security-Policy": `default-src 'self';\
script-src 'self' 'nonce-f51b9742' https://plausible.10bedicu.in;\
style-src 'self' 'nonce-7e14cf80';\
connect-src 'self' https://sentry.io https://plausible.10bedicu.in ${cdnUrls};\
connect-src 'self' ws: wss: https://sentry.io https://plausible.10bedicu.in ${cdnUrls};\
img-src 'self' blob: data: https://cdn.coronasafe.network ${cdnUrls};\
media-src 'self' blob: data: https://cdn.coronasafe.network ${cdnUrls};\
object-src 'self' blob: ${cdnUrls};`,
Expand Down

0 comments on commit 3d68325

Please sign in to comment.