rstudio/plumber

@filter cors for DELETE

Open

#409 创建于 2019年4月3日

在 GitHub 查看
 (4 评论) (2 反应) (0 负责人)R (1,437 star) (257 fork)batch import
difficulty: noviceeffort: mediumhelp wanted

描述

The filter mentioned in #143 works for GET requests, but is not active for DELETE. When I convert my DELETE to a (misnomed) GET, everything is fine.

#* @filter cors
cors <- function(res) {
  res$setHeader("Access-Control-Allow-Origin", "*")
  plumber::forward()
}

贡献者指南