[GH-ISSUE #18] Server address with / breaks extension configuration #14

Closed
opened 2026-03-02 11:45:38 +03:00 by kerem · 1 comment
Owner

Originally created by @mape on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/18

When you use a Server Address ending with a slash (https://sub.domain.tld/) the extension shows Failed to fetch.

Dev tools logs:

Access to fetch at 'https://sub.domain.tld//api/trpc/apiKeys.exchange?batch=1' from origin 'chrome-extension://kgcjekpmcjjogibpjebkhaanilehneje' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

Removing the slash fixes the issue.

Originally created by @mape on GitHub (Mar 27, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/18 When you use a Server Address ending with a slash (`https://sub.domain.tld/`) the extension shows **Failed to fetch**. Dev tools logs: Access to fetch at 'https://sub.domain.tld//api/trpc/apiKeys.exchange?batch=1' from origin 'chrome-extension://kgcjekpmcjjogibpjebkhaanilehneje' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. Removing the slash fixes the issue.
kerem 2026-03-02 11:45:38 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MohamedBassem commented on GitHub (Mar 27, 2024):

Thanks for the report! That's indeed a bug, will send a quick PR to fix it :)

<!-- gh-comment-id:2022774071 --> @MohamedBassem commented on GitHub (Mar 27, 2024): Thanks for the report! That's indeed a bug, will send a quick PR to fix it :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#14
No description provided.