OpenCut icon indicating copy to clipboard operation
OpenCut copied to clipboard

[BUG] Mixed content error, missing static pages, and 409 on waitlist request

Open Arya182-ui opened this issue 1 year ago • 4 comments

Platform

Windows 11 / macOS 14.5

Browser

Chrome 126.0.6478.127

Current Behavior

When accessing https://opencut.app, the browser console shows multiple issues:

1.Mixed Content Error: Request to http://opencut.app/api/auth/get-session is blocked because the page is served over HTTPS. This breaks session handling.

2.Missing Routes: /terms and /privacy routes return 404 errors.

3.POST Conflict (409): Submitting the waitlist form sometimes returns a 409, and there is no user-facing message explaining what happened.

Expected Behavior

1.All backend/API requests should use HTTPS to prevent browser blocking.

2.Terms and Privacy links should point to existing pages or be removed if not needed.

3.If the waitlist already contains an email, the frontend should gracefully inform the user instead of silently failing.

Recurrence Probability

Always

Steps To Reproduce

  1. Visit https://opencut.app/ in Chrome
  2. Open DevTools (F12) and view the console
  3. Look for the mixed content error related to get-session
  4. Click on footer links to /terms and /privacy → see 404s
  5. Submit an already-used email in the waitlist form → see 409 error in the console

Anything else?

  • Repo: https://github.com/OpenCut-app/OpenCut
  • Likely cause of Mixed Content: API base URL is using http:// instead of https://
  • Possible missing files: pages/terms.tsx and pages/privacy.tsx in apps/web
  • Suggest handling 409 on frontend with a toast or alert (e.g., “You're already on the waitlist.”)

Arya182-ui avatar Jul 14 '25 05:07 Arya182-ui

Toasts are now fixed with #251

Sivayogeith avatar Jul 14 '25 10:07 Sivayogeith

👏

On Mon, Jul 14, 2025, 3:34 PM Sivayogeith Umamaheswaran < @.***> wrote:

Sivayogeith left a comment (OpenCut-app/OpenCut#244) https://github.com/OpenCut-app/OpenCut/issues/244#issuecomment-3068755374

Toasts are now fixed with #251 https://github.com/OpenCut-app/OpenCut/pull/251

— Reply to this email directly, view it on GitHub https://github.com/OpenCut-app/OpenCut/issues/244#issuecomment-3068755374, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKNORLWRBXZLNFER3B3CIYD3IN6CTAVCNFSM6AAAAACBN67I5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANRYG42TKMZXGQ . You are receiving this because you authored the thread.Message ID: @.***>

Arya182-ui avatar Jul 14 '25 10:07 Arya182-ui

Fixed with PR #256

Abhi1264 avatar Jul 14 '25 13:07 Abhi1264

fixed the session issue

the issue was i had accidently set the env variable to http instead of https

closing as it seems all the issues have been solved!

mazeincoding avatar Jul 14 '25 15:07 mazeincoding