GOPI
GOPI

Reputation: 71

Swagger: Sending `Date` as an request header parameter in REST API

I need to send Date as part request header parameters to my REST API. I created Swagger-UI API document. If I tried accessing my API from Swagger-UI, the Date parameter is not getting delivered in application.

If we change the name Date to Date1, It works fine.

1) Is there any restrictions in sending Date as a request-header-parameter?

2) Is there any solution to send the Date as a request-header-parameter?

Note: I use chrome browser to test my application through swagger UI.

Thanks!

Upvotes: 0

Views: 2029

Answers (1)

lukeed
lukeed

Reputation: 469

1) Yes, it was removed from the spec as it's considered insecure.

2) No. Date is a server ResponseHeader only.

Upvotes: 1

Related Questions