Azure API Management のドメイン検証
1
2
3
4
<policies>
<inbound>
<base />
<choose>
<when condition="@(context.Request.OriginalUrl.Path == "/aikido.txt")">
<return-response>
<set-status code="200" reason="OK" />
<set-header name="Content-Type" exists-action="override">
<value>text/plain</value>
</set-header>
<set-body>AIKIDO_DOMAIN_VALIDATION_TOKEN_HERE</set-body>
</return-response>
</when>
</choose>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
</policies>5
最終更新
役に立ちましたか?