openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
Is passing headers in initial loading command possible?
To protect our swagger we are using express-basic-auth
which requires to pass some header params. Is it possible to pass some headers along with initial loading command?
Thanks for response. Cheers!
Currently not, it would require passing some options here: https://github.com/ferdikoomen/openapi-typescript-codegen/blob/deb6ddfaa974c7730b1ef64dc91369d8a96f0fe6/src/utils/getOpenApiSpec.ts#L10
@wildstyles @mbergen you can try using interceptors in https://github.com/hey-api/openapi-ts