How to use fatify-cors to enable just one api to cross domain?

后端 未结 0 1234
旧巷少年郎
旧巷少年郎 2021-01-04 10:15

I want to let [POST] localhost/product just this API to cross domain.

I dont know how to do it

fastify.register(require(\'fastify-cors\'), {
  origin:\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题