Skip to content

Instantly share code, notes, and snippets.

View tunnelWithAC's full-sized avatar

Conall Daly tunnelWithAC

  • Ireland
View GitHub Profile
@tunnelWithAC
tunnelWithAC / rplumber_cors.R
Created August 8, 2019 12:50
Example add Access-Control-Allow-Origin * to Headers in R Plumbr
#* @filter cors
cors <- function(res) {
res$setHeader("Access-Control-Allow-Origin", "*") # Or whatever
plumber::forward()
}