從寫程式碼,到創作下一幕

探索 字節跳動 - 火山方舟 的 AI 程式設計與影片創作活動。

Agent Plan & Coding Plan

一站體驗多款熱門模型,為 AI 程式設計與智能體開發提供更多選擇。新使用者可聯絡(微信: goo_lvyouyou)免費體驗 9.9 agent plan。

Seedance 2.5

讓創意,躍然成片。探索 30 秒影片、多模態參考與局部編輯,把腦海中的畫面變成下一支作品。

繁體中文

桌面版瀏覽器策略

為內建桌面瀏覽器部署和驗證受支援的 Chrome 策略

使用移動裝置管理(MDM)設定 ChatGPT 桌面應用中的內建瀏覽器。從受支援的策略列表中選擇一項策略,然後在部署前查閱 Chrome Enterprise 策略參考,瞭解其名稱和值格式。檢查每項策略支援的平台和瀏覽器版本。

如果你已經管理 Chrome,部署過程會很熟悉。Chrome 支援基於裝置的策略部署,也支援通過 Google Admin 進行雲瀏覽器管理。ChatGPT 桌面版目前支援通過 MDM、群組原則或設定管理工具進行基於裝置的部署;這些瀏覽器策略的雲管理功能尚不可用。

對於同一作業系統,策略內容和格式保持不變。主要區別在於將策略部署到裝置上的位置:使用 ChatGPT 桌面版的登錄檔項、偏好設定域或策略目錄,而不是 Chrome 的對應位置。

各平台的策略位置

平台 策略格式 Chrome 位置 ChatGPT 桌面版位置
Windows 登錄檔值和項 SOFTWARE\Policies\Google\Chrome SOFTWARE\Policies\OpenAI\Codex
macOS 設定描述檔中的受管理偏好設定 com.google.Chrome com.openai.codex
Linux 強制策略目錄中的 JSON 檔案 /etc/opt/chrome/policies/managed/ /etc/opt/codex/policies/managed/

ChatGPT 桌面版的識別符仍包含 Codex 或 codex。請完全按所示內容使用。

  • Windows: 對裝置上的所有使用者使用 HKEY_LOCAL_MACHINE,或對特定使用者使用 HKEY_CURRENT_USER。值和列表使用 Chrome 的 Windows 登錄檔格式。Chrome 的標準管理模板(ADMX)以 Chrome 為目標;請為 ChatGPT 桌面版使用自定義登錄檔設定。
  • macOS: 將策略鍵及其屬性列表值作為受管理偏好設定部署到 com.openai.codex 下。以 Chrome 的域為目標的設定描述檔不會作用於 ChatGPT 桌面版。
  • Linux: 將 JSON 檔案直接部署到 /etc/opt/codex/policies/managed/。對於支援使用者可更改的預設值的策略,請使用 /etc/opt/codex/policies/recommended/。

管理員指南

策略範例

以下範例設定了兩項策略:

策略 範例值 效果
PasswordManagerEnabled false 阻止儲存新密碼。不會刪除現有的已儲存密碼。
CookiesBlockedForUrls ["https://example.com"] 阻止 https://example.com 設定 Cookie。不會阻止存取該網站。

請將這些範例替換為你所在組織的設定。

Windows:Microsoft Intune 或群組原則

對於 Microsoft Intune,將以下內容儲存為 PowerShell 指令碼,並將其新增到 Platform scripts 中。該指令碼會為裝置上的所有使用者寫入強制策略:

$ErrorActionPreference = 'Stop'
$policyRoot = 'HKLM:\SOFTWARE\Policies\OpenAI\Codex'
if (-not (Test-Path -LiteralPath $policyRoot)) {
  New-Item -Path $policyRoot -Force | Out-Null
}
New-ItemProperty -Path $policyRoot -Name PasswordManagerEnabled -PropertyType DWord -Value 0 -Force | Out-Null
$cookieKey = "$policyRoot\CookiesBlockedForUrls"
if (-not (Test-Path -LiteralPath $cookieKey)) {
  New-Item -Path $cookieKey -Force | Out-Null
}
New-ItemProperty -Path $cookieKey -Name '1' -PropertyType String -Value 'https://example.com' -Force | Out-Null

在 Microsoft Intune Platform scripts 中,將 Run this script using the logged on credentials 設定為 No,將 Run script in 64-bit PowerShell host 設定為 Yes,然後將其分配給試點組。指令碼執行後,重啟 ChatGPT 桌面版並驗證策略。

對於群組原則,為指令碼中顯示的相同項、值名稱、類型和值建立登錄檔首選項,並將其應用於試點裝置。

登錄檔值格式:

  • 真或假: 使用 REG_DWORD,其中 0 表示假,1 表示真。
  • 字串列表: 建立以策略命名的子項。為其 REG_SZ 值從 1 開始編號。更新列表時,刪除不再適用的編號值。
  • 結構化策略: 遵循策略參考中規定的 Windows 編碼。例如,ExtensionSettings 將其字典作為 JSON 字串儲存在 REG_SZ 值中。

對於按使用者設定的策略,請使用 HKEY_CURRENT_USER 下的相同路徑,並在目標使用者的上下文中部署。以 SYSTEM 身份執行的指令碼不會寫入已登入使用者的 HKEY_CURRENT_USER。對於支援推薦預設值的策略,請在 ChatGPT 桌面版根項下使用名為 Recommended 的子項。

macOS 設定描述檔

建立一個設定描述檔,在 com.openai.codex 域中設定強制受管理偏好設定。對於 Jamf Pro,請先將以下內容儲存為 com.openai.codex.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>PasswordManagerEnabled</key>
  <false/>
  <key>CookiesBlockedForUrls</key>
  <array>
    <string>https://example.com</string>
  </array>
</dict>
</plist>
  • Jamf Pro:使用電腦設定描述檔中的 Application & Custom Settings 負載,上傳屬性列表,並將偏好設定域設定為 com.openai.codex。請參閱自定義設定說明。
  • Microsoft Intune: 建立 macOS Templates → Preference file 設定描述檔,並將 Preference domain name 設定為 com.openai.codex。對於此設定描述檔,僅儲存範例最外層 <dict> 內的鍵值對;省略 XML 宣告、DOCTYPE、<plist> 和最外層 <dict> 包裝。保留巢狀的 <array> 不變。請參閱 Intune 偏好設定檔案說明。
  • 其他 MDM 工具: 使用其自定義受管理偏好設定流程,或為此域部署等效的 .mobileconfig 設定描述檔。

將設定描述檔分配給試點裝置並確認安裝。重啟 ChatGPT 桌面版並驗證策略。請使用受管理偏好設定:通過 defaults write 寫入的普通使用者偏好設定不會使策略成為強制策略。

Linux 設定管理

與設定 Chrome 一樣,使用 Ansible、Puppet 或 Chef 等工具向裝置分發 JSON 策略檔案。

  1. 如有需要,建立 /etc/opt/codex/policies/managed/。
  2. 使用設定管理工具、軟體包或裝置管理代理,將 JSON 檔案直接部署到該目錄中。
  3. 將目錄和檔案的所有者設為 root,允許 ChatGPT 桌面版使用者讀取,並僅允許受信任的管理員寫入。常用權限為目錄 0755,檔案 0644。
  4. 重啟 ChatGPT 桌面版並驗證策略。

/etc/opt/codex/policies/managed/browser.json 範例:

{
  "PasswordManagerEnabled": false,
  "CookiesBlockedForUrls": ["https://example.com"]
}

根據各項策略的要求使用 JSON 布林值、數字、陣列和物件。將檔案直接放在 managed/ 中;不會讀取巢狀目錄。避免在多個檔案中定義同一策略。

驗證策略

  1. 確認部署工具已將登錄檔值、設定描述檔或 JSON 檔案部署到試點裝置。
  2. 退出並重新開啟 ChatGPT 桌面版。開啟應用內瀏覽器標籤頁,在 ChatGPT 桌面版中 存取 chrome://policy。
  3. 選擇 Reload policies。檢查每項策略的值、來源、範圍、級別和狀態。對於這些強制策略範例,來源應為 Platform,級別應為 Mandatory,且沒有策略錯誤。
  4. 在該瀏覽器中測試預期行為。策略出現在此頁面上表明它已被讀取,但這本身不能證明受影響的功能按預期執行。

有些策略即使在重新載入後,仍需要完全重啟應用。擴大部署範圍前,請完成試點檢查。

如果缺少某項策略,請檢查其拼寫、目標位置、分配情況和讀取權限。如果策略顯示錯誤或被忽略,請檢查值類型、支援的平台和策略級別,以及 chrome://policy 上報告的任何衝突策略。

要更改或移除策略,請更新提供該策略的部署,並刪除過時的登錄檔條目或檔案中的鍵。如果使用了指令碼,請先刪除指令碼寫入的值,再移除指令碼分配。重啟 ChatGPT 桌面版並再次驗證。

支援的策略參考

ChatGPT 桌面版的應用內瀏覽器支援下列 244 項策略。有關每項策略的用途、接受的值和平台詳情,請在 Google 的 Chrome Enterprise 策略列表中尋找其名稱。

A–C

  • AccessControlAllowMethodsInCORSPreflightSpecConformant
  • AIModeSettings
  • AllowDeletingBrowserHistory
  • AllowedDomainsForApps
  • AllowSystemNotifications
  • AllowWebAuthnWithBrokenTlsCerts
  • AlternateErrorPagesEnabled
  • AlwaysOpenPdfExternally
  • AudioCaptureAllowed
  • AudioCaptureAllowedUrls
  • AuthNegotiateDelegateAllowlist
  • AuthServerAllowlist
  • AutofillAddressEnabled
  • AutofillCreditCardEnabled
  • AutoFillEnabled
  • AutofillSettings
  • AutoLaunchProtocolsFromOrigins
  • AutomaticDownloadsAllowedForUrls
  • AutomaticDownloadsBlockedForUrls
  • AutomaticFullscreenAllowedForUrls
  • AutomaticFullscreenBlockedForUrls
  • AutoOpenAllowedForURLs
  • AutoOpenFileTypes
  • AutoplayAllowed
  • AutoplayAllowlist
  • AutoSelectCertificateForUrls
  • BlockExternalExtensions
  • BlockThirdPartyCookies
  • BoundSessionCredentialsEnabled
  • CACertificates
  • CACertificatesWithConstraints
  • CacheEncryptionEnabled
  • CADistrustedCertificates
  • CAHintCertificates
  • CAPlatformIntegrationEnabled
  • CloudAPAuthEnabled
  • ComponentUpdatesEnabled
  • CompressionDictionaryTransportEnabled
  • CookiesAllowedForUrls
  • CookiesBlockedForUrls
  • CORSNonWildcardRequestHeadersSupport
  • CpuPerformanceTierOverride

D–F

  • DataUrlInSvgUseEnabled
  • DataUrlInWebWorkerOpaqueOriginEnabled
  • DefaultAutomaticDownloadsSetting
  • DefaultIdleDetectionSetting
  • DefaultImagesSetting
  • DefaultJavaScriptJitSetting
  • DefaultJavaScriptOptimizerSetting
  • DefaultJavaScriptSetting
  • DefaultLocalFontsSetting
  • DefaultMediaStreamSetting
  • DefaultNotificationsSetting
  • DefaultPopupsSetting
  • DefaultPrinterSelection
  • DefaultSearchProviderAlternateURLs
  • DefaultSearchProviderContextMenuAccessAllowed
  • DefaultSearchProviderName
  • DefaultSearchProviderNewTabURL
  • DefaultSearchProviderSearchURLPostParams
  • DefaultSearchProviderSuggestURL
  • DefaultSearchProviderSuggestURLPostParams
  • DefaultSensorsSetting
  • DefaultSerialGuardSetting
  • DefaultWebBluetoothGuardSetting
  • DefaultWebHidGuardSetting
  • DefaultWebUsbGuardSetting
  • DefaultWindowManagementSetting
  • DefaultWindowPlacementSetting
  • Disable3DAPIs
  • DisabledSchemes
  • DisablePrintPreview
  • DNSInterceptionChecksEnabled
  • DownloadRestrictions
  • EditBookmarksEnabled
  • EnableMediaRouter
  • EnableOnlineRevocationChecks
  • EncryptedClientHelloEnabled
  • EnterpriseHardwarePlatformAPIEnabled
  • ExemptDomainFileTypePairsFromFileTypeDownloadWarnings
  • ExtensionAllowedTypes
  • ExtensionDeveloperModeSettings
  • ExtensionExtendedBackgroundLifetimeForPortConnectionsToUrls
  • ExtensionInstallAllowlist
  • ExtensionInstallBlocklist
  • ExtensionInstallForcelist
  • ExtensionInstallSources
  • ExtensionInstallTypeBlocklist
  • ExtensionSettings
  • ExtensionUnpublishedAvailability
  • ExternalProtocolDialogShowAlwaysOpenCheckbox
  • FileOrDirectoryPickerWithoutGestureAllowedForOrigins
  • ForceForegroundPriorityForUrls
  • ForceGoogleSafeSearch
  • ForceSafeSearch
  • ForceYouTubeRestrict
  • ForceYouTubeSafetyMode

G–L

  • GeolocationBlockedForUrls
  • HSTSPolicyBypassList
  • HttpAllowlist
  • HttpHeaderInjection
  • HttpsUpgradesEnabled
  • IdleDetectionAllowedForUrls
  • IdleDetectionBlockedForUrls
  • ImagesAllowedForUrls
  • ImagesBlockedForUrls
  • ImportHistory
  • ImportSavedPasswords
  • IsolateOrigins
  • JavaScriptAllowedForUrls
  • JavaScriptBlockedForUrls
  • JavascriptEnabled
  • JavaScriptJitAllowedForSites
  • JavaScriptJitBlockedForSites
  • JavaScriptOptimizerAllowedForSites
  • JavaScriptOptimizerBlockedForSites
  • LocalFontsAllowedForUrls
  • LocalFontsBlockedForUrls
  • LocalNetworkAccessAllowedForUrls
  • LocalNetworkAccessBlockedForUrls
  • LocalNetworkAccessIpAddressSpaceOverrides
  • LocalNetworkAccessRestrictionsTemporaryOptOut
  • LocalNetworkAllowedForUrls
  • LocalNetworkBlockedForUrls
  • LookalikeWarningAllowlistDomains
  • LoopbackNetworkAllowedForUrls
  • LoopbackNetworkBlockedForUrls

M–P

  • ManagedBookmarks
  • ManagedConfigurationPerOrigin
  • NativeHostsExecutablesLaunchDirectly
  • NativeMessagingAllowlist
  • NativeMessagingBlocklist
  • NativeMessagingUserLevelHosts
  • NetworkPredictionOptions
  • NotificationsAllowedForUrls
  • NotificationsBlockedForUrls
  • OopPrintDriversAllowed
  • OriginAgentClusterDefaultEnabled
  • PartitionedBlobUrlUsage
  • PasswordLeakDetectionEnabled
  • PasswordManagerBlocklist
  • PasswordManagerEnabled
  • PaymentMethodQueryEnabled
  • PdfAnnotationsEnabled
  • PdfLocalFileAccessAllowedForDomains
  • PdfUseSkiaRendererEnabled
  • PdfViewerOutOfProcessIframeEnabled
  • PolicyDictionaryMultipleSourceMergeList
  • PopupsAllowedForUrls
  • PopupsBlockedForUrls
  • PreferSlowCiphers
  • PreferSlowKexAlgorithms
  • PrefetchWithServiceWorkerEnabled
  • PrinterTypeDenyList
  • PrintHeaderFooter
  • PrintingAllowedBackgroundGraphicsModes
  • PrintingBackgroundGraphicsDefault
  • PrintingEnabled
  • PrintingLPACSandboxEnabled
  • PrintingPaperSizeDefault
  • PrintPdfAsImageAvailability
  • PrintPdfAsImageDefault
  • PrintPostScriptMode
  • PrintPreviewUseSystemDefaultPrinter
  • PrintRasterizationMode
  • PrintRasterizePdfDpi
  • PromptOnMultipleMatchingCertificates
  • ProxyBypassList
  • ProxyMode
  • ProxyPacUrl
  • ProxyServer
  • ProxyServerMode
  • ProxySettings

Q–S

  • QuicAllowed
  • ReduceAcceptLanguageEnabled
  • RegisteredProtocolHandlers
  • RelaunchFastIfOutdated
  • RelaunchNotification
  • RelaunchNotificationPeriod
  • RelaunchWindow
  • RemoteDebuggingAllowed
  • RequireOnlineRevocationChecksForLocalAnchors
  • RestrictYouTubeCookiesDeletion
  • SameOriginTabCaptureAllowedByOrigins
  • SandboxExternalProtocolBlocked
  • ScreenCaptureAllowed
  • ScreenCaptureAllowedByOrigins
  • ScreenCaptureWithoutGestureAllowedForOrigins
  • ScrollToTextFragmentEnabled
  • SearchSuggestEnabled
  • SecurityKeyPermitAttestation
  • SensorsAllowedForUrls
  • SensorsBlockedForUrls
  • SerialAllowAllPortsForUrls
  • SerialAllowUsbDevicesForUrls
  • SerialAskForUrls
  • SerialBlockedForUrls
  • ServiceWorkerAutoPreloadEnabled
  • ServiceWorkerToControlSrcdocIframeEnabled
  • SharedArrayBufferUnrestrictedAccessAllowed
  • SharedWorkerBlobURLFixEnabled
  • SharedWorkerExtendedLifetimeEnabled
  • SignedHTTPExchangeEnabled
  • SilentPrintingEnabled
  • SitePerProcess
  • SpellcheckEnabled
  • SpellcheckLanguage
  • SpellcheckLanguageBlocklist
  • SSLErrorOverrideAllowed
  • SSLErrorOverrideAllowedForOrigins
  • StandardizedBrowserZoomEnabled
  • StaticStorageQuotaEnabled
  • StrictMimetypeCheckForWorkerScriptsEnabled
  • SuppressDifferentOriginSubframeDialogs

T–Z

  • TabCaptureAllowedByOrigins
  • TranslatorAPIAllowed
  • URLAllowlist
  • URLBlocklist
  • UrlKeyedAnonymizedDataCollectionEnabled
  • VideoCaptureAllowed
  • VideoCaptureAllowedUrls
  • WebAudioOutputBufferingEnabled
  • WebHidAllowAllDevicesForUrls
  • WebHidAllowDevicesForUrls
  • WebHidAllowDevicesWithHidUsagesForUrls
  • WebHidAskForUrls
  • WebHidBlockedForUrls
  • WebRtcDiagnosticLogCollectionAllowedForOrigins
  • WebRtcIPHandling
  • WebRtcIPHandlingUrl
  • WebRtcLocalIpsAllowedUrls
  • WebRtcPostQuantumKeyAgreement
  • WebRtcTextLogCollectionAllowed
  • WebRtcUdpPortRange
  • WebUsbAllowDevicesForUrls
  • WebUsbAskForUrls
  • WebUsbBlockedForUrls
  • WindowCaptureAllowedByOrigins
  • WindowManagementAllowedForUrls
  • WindowManagementBlockedForUrls
  • WindowPlacementAllowedForUrls
  • WindowPlacementBlockedForUrls
  • WPADQuickCheckEnabled
  • XSLTEnabled