Disabling HTTP OPTIONS:

ARTIFACTORY: How to disable HTTP OPTIONS in Artifactory?

AuthorFullName__c
Nir Shervi
articleNumber
000005562
ft:sourceType
Salesforce
FirstPublishedDate
2023-01-29T09:51:58Z
lastModifiedDate
2023-01-30T09:03:23Z
VersionNumber
1
The HTTP OPTIONS method can be disabled by adding the block below to the Tomcat $JFROG_HOME/artifactory/app/artifactory/tomcat/conf/web.xml file:
  <!-- ================ Disable HTTP OPTIONS ========================= -->
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>restricted methods</web-resource-name>
                <url-pattern>/*</url-pattern>
                <http-method>OPTIONS</http-method>
            </web-resource-collection>
        <auth-constraint />
    </security-constraint>

After executing the above, restart the Artifactory service in order for the change to take effect.