calling api from azure portal - apim - test add an unknown azure pub ip to x-forwarded-for header

Martin Kallukalam 355 Reputation points
2024-06-12T12:27:34.66+00:00

when calling aip from az portal an extra ip is added to x forwarded for header. What is this IP?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,116 questions
{count} votes

Accepted answer
  1. Ben Gimblett 4,525 Reputation points Microsoft Employee
    2024-06-12T15:55:51.6366667+00:00

    Hi thanks for the question

    if you look very closely at the APIM test console in Az Portal you'll see a default checkbox which is unchecked next to the send and trace buttons "Bypass cors proxy"

    By default the request sent are not from the browser but go via a cors proxy, if you resend the test but check "bypass cors proxy" you should see that x-forwarded-for is what you originally expected.

    Hope this clears up the query

    1 person found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Martin Kallukalam 355 Reputation points
    2024-06-12T15:58:41.6133333+00:00

    thank you both for your answers.

    0 comments No comments

  2. Martin Kallukalam 355 Reputation points
    2024-06-12T15:59:30.9733333+00:00

    can someone fix the autobot logic on how it flag comments, questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.