Azure Web Apps에서 HTTP 헤더를 설정하는 방법
                                            
                                                
                                                
                                                
                                                
                                                
                                                 2487 단어  Web.configWebAppsHttpHeaderAzure
                    
용례
전제 조건
쓰지 마
HTTP 헤더 설정 방법
…
<system.webServer>
  <httpProtocol>
    <customHeaders>
      <!-- ここに設定したいHTTPヘッダの情報を記載する -->
      <!-- 追加 -->
      <add name="${HTTPヘッダ名}" value="${Value}"/>
      <!-- 削除 -->
      <remove name="${HTTPヘッダ名}" />
    </customHeaders>
  </httpProtocol>
</system.webServer>
…
<add name="X-XSS-Protection" value="1; mode=block"/>
<remove name="X-Powered-By" />
Azure WebApps에서 기본적으로 설정된 HTTP 헤더 정보를 삭제하려면 
WebApps를 방금 구축한 상태에서 다음 HTTP 제목이 반환됩니다.
 
X-Powered-By, Server, X-AspNet-Version(위에는 표시되지 않음)에서 반환된 HTTP 헤더에 대한 정보는 항상 숨기고 싶어집니다.
이런 상황도 마찬가지로 다음과 같다.config로 설정하면 삭제할 수 있습니다.
Web.config<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <!-- X-Powered-Byの削除 -->
       <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
    <security>
      <!-- Serverの削除 -->
      <requestFiltering removeServerHeader="true" />
    </security>
  </system.webServer>
  <system.web>
    <!-- X-AspNet-Versionの削除 -->
    <httpRuntime enableVersionHeader="false" />
  </system.web>
</configuration>
X-Powered-By는 물론 다른 설정과 작법이 조금씩 다르기 때문에 주의해야 한다.
마지막 
상기에도 기재된 웹 서비스에 필요한 설정은 다양한 시행착오 경험 기술이 있어 조금씩 TIPS로 남기고 싶습니다.도움이 됐으면 좋겠어요.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Azure Web Apps에서 HTTP 헤더를 설정하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/TAKAKING22/items/48d6e7e3600a68b39fe2
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <!-- X-Powered-Byの削除 -->
       <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
    <security>
      <!-- Serverの削除 -->
      <requestFiltering removeServerHeader="true" />
    </security>
  </system.webServer>
  <system.web>
    <!-- X-AspNet-Versionの削除 -->
    <httpRuntime enableVersionHeader="false" />
  </system.web>
</configuration>
상기에도 기재된 웹 서비스에 필요한 설정은 다양한 시행착오 경험 기술이 있어 조금씩 TIPS로 남기고 싶습니다.도움이 됐으면 좋겠어요.
Reference
이 문제에 관하여(Azure Web Apps에서 HTTP 헤더를 설정하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/TAKAKING22/items/48d6e7e3600a68b39fe2텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)