zowe / api-layer

The API Mediation Layer provides a single point of access for mainframe service REST APIs.
Eclipse Public License 2.0
56 stars 64 forks source link

Question about X-CSRF-ZOSMF-HEADER for ZOSMF service exposed on Zowe API Gateway #3582

Closed std4lqi closed 6 months ago

std4lqi commented 6 months ago

My code runs on on the same host as Zowe on myzowe.mydomain.com , and ZOSMF is on another host, like myzosmf.mydomain.com .

When my code invokes ZOSMF API from Zowe API Gateway (myzowe.mydomain.com),

Thanks in advance!

balhar-jakub commented 6 months ago

Zowe doesn't add X-CSRF-ZOSMF-HEADER to the requests forwarded through the API Mediation Layer. I don't think there is at the moment configuration to always add the same header for the southbound service e.g. ibmzosmf

Therefore I believe you need to add this header to your request so that Zowe API Gateway forwards it to zOSMF.

std4lqi commented 6 months ago

Many thanks, @balhar-jakub! That's clear to me now.