rstudio/plumber

@filter cors for DELETE

开放

#409 创建于 2019年4月3日

 (4 条评论) (2 个反应) (0 位负责人)R (257 个派生)batch import
difficulty: noviceeffort: mediumhelp wanted

仓库指标

星标
 (1,437 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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()
}

贡献者指南