Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/auth/login-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ export function LoginModal({
<a
href="https://www.cloudflare.com/website-terms/"
target="_blank"
rel="noopener noreferrer"
className="underline hover:text-kumo-default"
>
Terms of Service
Expand All @@ -515,6 +516,7 @@ export function LoginModal({
<a
href="https://www.cloudflare.com/privacypolicy/"
target="_blank"
rel="noopener noreferrer"
className="underline hover:text-kumo-default"
>
Privacy Policy
Expand Down
2 changes: 1 addition & 1 deletion src/components/cloudflare-account-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function CloudflareAccountSelector() {
<DropdownMenu.Content align="end">
{gatewayDashUrl && (
<DropdownMenu.Item
onClick={() => window.open(gatewayDashUrl, '_blank')}
onClick={() => window.open(gatewayDashUrl, '_blank', 'noopener,noreferrer')}
>
<ExternalLink className="size-4" />
View gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function PresentationHeaderActions({
: `${currentSrc}?print-pdf`;

// Open print view in new window for PDF export
window.open(printUrl, '_blank');
window.open(printUrl, '_blank', 'noopener,noreferrer');
};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/routes/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export default function AppView() {
aria-label="Open in new tab"
title="Open in new tab"
onClick={() =>
window.open(appUrl, '_blank')
window.open(appUrl, '_blank', 'noopener,noreferrer')
}
icon={
<ExternalLink className="size-3.5" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/chat/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function ChatSession() {
<Button
variant="ghost"
className="h-8 shrink-0 px-2 text-xs text-text-tertiary hover:bg-kumo-elevated hover:text-text-primary"
onClick={() => window.open(cloudflareDeploymentUrl, '_blank')}
onClick={() => window.open(cloudflareDeploymentUrl, '_blank', 'noopener,noreferrer')}
>
<ExternalLink className="size-3.5" />
View Live
Expand Down
6 changes: 3 additions & 3 deletions src/routes/chat/components/deployment-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function DeploymentControls({

// Public apps (or missing appId): open the deployed URL directly.
if (deploymentTarget === 'user' || localVisibility !== 'private' || !appId) {
window.open(deploymentUrl, '_blank');
window.open(deploymentUrl, '_blank', 'noopener,noreferrer');
return;
}

Expand All @@ -132,15 +132,15 @@ export function DeploymentControls({
try {
const response = await apiClient.generatePreviewToken(appId);
if (response.success && response.data) {
window.open(response.data.previewUrl, '_blank');
window.open(response.data.previewUrl, '_blank', 'noopener,noreferrer');
return;
}
} catch (error) {
console.error('Failed to generate owner preview token:', error);
}

// Fallback: attempt the raw URL.
window.open(deploymentUrl, '_blank');
window.open(deploymentUrl, '_blank', 'noopener,noreferrer');
};

const handleToggleVisibility = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/usage-limit-checker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function createInsufficientBalanceDialog(balance: number, accountId: string | un
const url = accountId
? `https://dash.cloudflare.com/${accountId}/ai/ai-gateway/credits`
: 'https://dash.cloudflare.com';
window.open(url, '_blank');
window.open(url, '_blank', 'noopener,noreferrer');
}}
className="w-full sm:w-auto bg-brand-primary hover:bg-brand-primary/90 text-white"
>
Expand Down
Loading