Cookie未在转发请求时转发到内部呼叫 [英] Cookie is not being forwarded to internal calls on forward request

查看:109
本文介绍了Cookie未在转发请求时转发到内部呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我们从网页呼叫webapi时,我们都会发送一个域映射到API管理的cookie。
从网页发送的cookie被传递到api管理,并且在转发请求期间,不转发该cookie到不同域名的内部webapi由于api管理政策,我无法从收到的请求中读取cookie,请帮我解决这个问题
/>


使用不同域中的api管理将cookie从网页发送到内部webapi的最佳方法是什么?


LogesSMT

解决方案


您是否尝试过在标题中发送cookie:


https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies #SetHTTPheader


这也适用于不同的域


干杯


K


we are sending an cookie with domain mapped to API management whenever we are calling an webapi from webpage
The cookie sent from webpage is passed till api management and during forwarding of request the same is not forwarded to the internal webapi's which is of different domain

I am not able to read cookie from incoming request too in api managment policies, please help me out to fix this

what is the best way to send cookies from webpage to internal webapi using api management that are in different domains?


LogesSMT

解决方案

Hi,

Have you tried sending the cookie in the header:

https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#SetHTTPheader

This is also be possible to work with different domains

Cheers

K


这篇关于Cookie未在转发请求时转发到内部呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆