| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Collections.Generic; |
| | 5 | | using Azure.Core; |
| | 6 | |
|
| | 7 | | namespace Azure.Data.AppConfiguration |
| | 8 | | { |
| | 9 | | internal static class ClientOptionsExtensions |
| | 10 | | { |
| | 11 | | public static void ConfigureLogging(this ClientOptions clientOptions) |
| | 12 | | { |
| 326 | 13 | | IList<string> loggedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames; |
| 326 | 14 | | loggedHeaderNames.Add("Access-Control-Allow-Credentials"); |
| 326 | 15 | | loggedHeaderNames.Add("Access-Control-Allow-Headers"); |
| 326 | 16 | | loggedHeaderNames.Add("Access-Control-Allow-Methods"); |
| 326 | 17 | | loggedHeaderNames.Add("Access-Control-Allow-Origin"); |
| 326 | 18 | | loggedHeaderNames.Add("Etag"); |
| 326 | 19 | | loggedHeaderNames.Add("Last-Modified"); |
| 326 | 20 | | loggedHeaderNames.Add("Strict-transport-security"); |
| 326 | 21 | | loggedHeaderNames.Add("Sync-Token"); |
| 326 | 22 | | loggedHeaderNames.Add("x-ms-correlation-request-id"); |
| 326 | 23 | | loggedHeaderNames.Add("x-ms-request-id "); |
| | 24 | |
|
| 326 | 25 | | clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version"); |
| 326 | 26 | | } |
| | 27 | | } |
| | 28 | | } |