Hi @Marcelo Arnaldi,
Thank you for reaching out to MS Q&A.
To add inbound policy, follow below steps:
Firstly, In API section, Clicked on API and then on Design.
Then Clicked on Add Policy as below:
Then Clicked on Other Policies:
Then pasted below xml :
<policies>
<inbound>
<cors allow-credentials="true">
<allowed-origins>
<origin>https://URL</origin>
</allowed-origins>
<allowed-methods>
<method>GET</method>
<method>POST</method>
<method>OPTIONS</method>
<method>PUT</method>
</allowed-methods>
<allowed-headers>
<header>*</header>
</allowed-headers>
<expose-headers>
<header>*</header>
</expose-headers>
</cors>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
and then save it:
And also check, while you are sending PUT and DELETE request, make sure to give the correct path that the request has been configured with.
Check if there is any re-routing done, due to which you may face this issue. Also check the logs, so that you can get to know the what causing the real issue.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.