Cookie未在转发请求时转发到内部呼叫 [英] Cookie is not being forwarded to internal calls on forward request
问题描述
从网页发送的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屋!