如需完整的文件索引,請參閱 llms.txt。在文件頁面的網址末尾加上 .md ,即可取得該頁面的 Markdown 版本。
主要導覽
主題

桌面版瀏覽器政策

為桌面版應用程式的內建瀏覽器部署並驗證支援的 Chrome 政策

使用行動裝置管理(MDM)設定 ChatGPT 桌面版的內建瀏覽器。從支援的政策清單選擇政策,部署前先在 Chrome Enterprise 政策參考文件中查閱政策名稱和設定值格式。請逐一確認各項政策支援的平台與瀏覽器版本。

如果你已在管理 Chrome,應該會很熟悉這套部署流程。Chrome 支援在裝置上部署政策,也支援透過 Google 管理控制台從雲端管理瀏覽器。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 指令碼,並將指令碼新增至平台指令碼。這段指令碼會寫入強制政策,套用至裝置上的所有使用者:

$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 平台指令碼中,將使用登入的認證執行此指令碼設為否,並將在 64 位元 PowerShell 主機中執行指令碼設為是,然後將指令碼指派給試行群組。指令碼執行完畢後,請重新啟動 ChatGPT 桌面版並驗證政策。

如果使用群組原則,請依照指令碼中的機碼、值名稱、類型和值建立登錄喜好設定項目,並將這些項目套用至試行裝置。

登錄值格式如下:

  • **布林值:**使用 REG_DWORD,其中 0 代表假,1 代表真。
  • **字串清單:**建立與政策同名的子機碼,並從 1 開始依序為其中的 REG_SZ 值編號。更新清單時,請移除不再適用的編號值。
  • **結構化政策:**請依照政策參考文件指定的 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:使用電腦設定描述檔的應用程式與自訂設定承載內容,上傳屬性列表,並將偏好設定網域設為 com.openai.codex。請參閱自訂設定說明。
  • Microsoft Intune:建立 macOS 描述檔時,選擇範本 → 喜好設定檔案,並將喜好設定網域名稱設為 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. 選取重新載入政策。檢查每項政策的值、來源、適用範圍、層級和狀態。對於範例中的強制政策,來源應為平台,層級應為強制,且不應有政策錯誤。
  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