Logic Apps custom connector with Cookie header

Thakkar, Bunty 21 Reputation points
2022-07-20T14:49:41.647+00:00

Hi,

I am trying to call an api through a custom connector (Gateway enabled) through a logic app.

There are 2 custom connectors

  1. The first one returns me a sessionID in the Set-cookie header response.
  2. I am passing the sessionID as a Cookie header to the 2nd custom connector (the one where i have a problem). This seems to be not working as expected. I dont know if we can send the Cookie header or its not possible with gateway connectors.

I saw a few blogs that mentioned that sending Cookie headers to a custom connector doesnt work.

Please help.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,162 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kamlesh Kumar 3,861 Reputation points
    2022-07-23T04:28:54.037+00:00

    Hi @Thakkar, Bunty ,

    Welcome to Microsoft Q&A Platform. Thank you for the question.

    It seems HTTP connectors do not use gateway so you cannot establish connection & custom connectors do not support Cookies. So I would suggest you to explore the Azure Function App to make the HTTP request with Cookies.

    Also, you can check the similar discussion in below thread, and highlighting the points for your reference,

    https://stackoverflow.com/questions/62206360/sending-cookie-using-http-connector-custom-logic-app-connector

    1. HTTP action does not support on-premise data gateway, so the hostname or ip could not be resolved because the HTTP action always talks to public network.
    2. If you could use custom connector to connect to on-premise data gateway, you should not get the unresolvedhostname issue. However, the custom connector does not support Cookie authentication, that’s why you could not get it through.
    3. One workaround is using application gateway to reverse proxy services and publish your on-premise server to public. It would act like an VPN and you could use HTTP action in logic app to establish connection.
    4. Another workaround is trying to use Function App to make the HTTP request with Cookies

    Regards,
    Kamlesh Kumar

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.