web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Getting an error while calling the API via x++

(0) ShareShare
ReportReport
Posted on by 184

Hello Team,

I have been developing a project in X to call api.

I am successfully able to generate the code via x

Able to generate and serialize the payload.

Only when trying to call the API is getting the error "403 - Forbidden, Remote server returned error"

Please find the below error log which I have captured from Azure application gateway

Please suggest me how to fix this

api.tst.sqcp.qa

/accountmanagement/apiInterface/AccountManagement/MakePayment

Blocked

Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Inbound Score: 9 - SQLI=0,XSS=0,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): Request Containing Content Requires Content-Type header; individual paranoia level scores: 2, 7, 0, 0

172.20.34.70

TimeGenerated [UTC]

2022-09-21T13:07:18.217Z

clientIp_s

172.20.34.70

hostname_s

api.tst.sqcp.qa

requestUri_s

/accountmanagement/apiInterface/AccountManagement/MakePayment

action_s

Blocked

Message

Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Inbound Score: 9 - SQLI=0,XSS=0,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): Request Containing Content Requires Content-Type header; individual paranoia level scores: 2, 7, 0, 0

details_message_s

Warning. Operator GE matched 5 at TX:inbound_anomaly_score.

ruleSetType_s

OWASP_CRS

ruleId_s

980130

details_file_s

rules/RESPONSE-980-CORRELATION.conf

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Getting an error while calling the API via x++

    An API can mean almost anything. It seems that you're talking about a REST web service in particular.

    The error messages (in the log) says that request was blocked because you didn't provide Content-Type header. An obvious next step is setting the header.

  • D365_Wibes Profile Picture
    184 on at
    RE: Getting an error while calling the API via x++

    Excellent Martin..  you are just an awesome technical consultant that I have ever seen.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 945

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 256 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 176 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans