fix: Avoid CSP related warnings in console on booking pages.#14072
fix: Avoid CSP related warnings in console on booking pages.#14072hariombalhara merged 3 commits intomainfrom
Conversation
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @hariombalhara and the rest of your teammates on |
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
| # NEXT_PUBLIC_DISABLE_SIGNUP=true | ||
| NEXT_PUBLIC_DISABLE_SIGNUP= | ||
|
|
||
| # Set this to 'non-strict' to enable CSP for support pages. 'strict' isn't supported yet. Also, check the README for details. |
There was a problem hiding this comment.
Missing documentation
| const name = enforced ? "Content-Security-Policy" : /*"Content-Security-Policy-Report-Only"*/ null; | ||
|
|
||
| if (!name) { | ||
| return { |
There was a problem hiding this comment.
This is the same return value we do in similar cases above.
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 303 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 03/15/2024 03:41:10pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: b0cbcfd Started: 03/15/2024 03:35:32pm UTC
|
|
|
2 Test Cases Affected |
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Stripe integration Can book a paid booking
Retry 1 • Initial Attempt |
3.79% (8)8 / 211 runsfailed over last 7 days |
33.18% (70)70 / 211 runsflaked over last 7 days |
|
Stripe integration Paid booking should be able to be rescheduled
Retry 2 • Retry 1 • Initial Attempt |
0.99% (2)2 / 203 runsfailed over last 7 days |
1.97% (4)4 / 203 runsflaked over last 7 days |
📄 apps/web/playwright/insights.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Insights should be able to go to insights as admins
Retry 1 • Initial Attempt |
0.50% (1)1 / 201 runfailed over last 7 days |
6.47% (13)13 / 201 runsflaked over last 7 days |
📄 apps/web/playwright/profile.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Update Profile Can resend verification link if the secondary email is unverified
Retry 2 • Retry 1 • Initial Attempt |
5.79% (11)11 / 190 runsfailed over last 7 days |
25.26% (48)48 / 190 runsflaked over last 7 days |
📄 apps/web/playwright/organization/organization-invitation.e2e.ts • 2 Flakes
Top 1 Common Error Messages
|
|
2 Test Cases Affected |
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Organization Email not matching orgAutoAcceptEmail nonexisting user invited to a Team inside organization
Retry 1 • Initial Attempt |
1.53% (3)3 / 196 runsfailed over last 7 days |
14.80% (29)29 / 196 runsflaked over last 7 days |
|
Organization Email matching orgAutoAcceptEmail and a Verified Organization nonexisting user is invited to a team inside organization
Retry 1 • Initial Attempt |
4.08% (8)8 / 196 runsfailed over last 7 days |
8.16% (16)16 / 196 runsflaked over last 7 days |
📄 apps/web/playwright/availability.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Availablity it can delete date overrides
Retry 2 • Retry 1 • Initial Attempt |
2.13% (1)1 / 47 runfailed over last 7 days |
44.68% (21)21 / 47 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 8 Flakes
Top 1 Common Error Messages
|
|
8 Test Cases Affected |
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1 • Initial Attempt |
1.45% (3)3 / 207 runsfailed over last 7 days |
45.41% (94)94 / 207 runsflaked over last 7 days |
|
Popup Tests should be able to reschedule
Retry 1 • Initial Attempt |
-85.45% (-94)-94 / 110 runsfailed over last 7 days |
85.45% (94)94 / 110 runsflaked over last 7 days |
|
Popup Tests should open Routing Forms embed on click
Retry 1 • Initial Attempt |
-85.32% (-93)-93 / 109 runsfailed over last 7 days |
85.32% (93)93 / 109 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1 • Initial Attempt |
-84.40% (-92)-92 / 109 runsfailed over last 7 days |
84.40% (92)92 / 109 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when configured with 'auto' theme using Embed API
Retry 1 • Initial Attempt |
-84.40% (-92)-92 / 109 runsfailed over last 7 days |
84.40% (92)92 / 109 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1 • Initial Attempt |
-84.40% (-92)-92 / 109 runsfailed over last 7 days |
84.40% (92)92 / 109 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1 • Initial Attempt |
-84.40% (-92)-92 / 109 runsfailed over last 7 days |
84.40% (92)92 / 109 runsflaked over last 7 days |
|
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1 • Initial Attempt |
-84.40% (-92)-92 / 109 runsfailed over last 7 days |
84.40% (92)92 / 109 runsflaked over last 7 days |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (03/13/24)1 reviewer was added to this PR based on Keith Williams's automation. |

What does this PR do?
Fixes #13844
We are disabling Report only CSP mode now. It was added so that we can observe the errors that would come if we enable CSP and work towards fixing them. As, we are not actively working towards fixing them, it doesn't make sense to keep the mode enabled.
These are some of the reasons we get CSP warnings on booking pages as of now.
Type of change
How should this be tested?
Set CSP_POLICY='non-strict' in .env
Mandatory Tasks
Checklist