vespa

Enable CORS in vespa

ぃ、小莉子 提交于 2020-01-05 03:57:09
问题 How to enable CORS in vespa? I want to deploy my API's to swagger UI but due to CORS disbled in vespa, I am unable to do this. Is there any way to enable CORS in vespa or How should I use API's in swagger to use it? Please help. 回答1: Vespa does not come with built-in CORS support. You'll have to implement the CORS logic yourself as JDisc security filters (http-server-and-filters.html, services-http.html#filter). The Vespa source code contains a set of CORS filters that can be used as