Closed Lchiffon closed 7 years ago
Aoooooo~ I knew!
Add these to my response$headers
can solve this problem!
response$headers <- list('Content-Type'='text/json',
"Access-Control-Allow-Origin"="*",
"Access-Control-Allow-Headers"="Content-Type,Content-Length, Authorization, Accept,X-Requested-With",
"Access-Control-Allow-Methods"="PUT,POST,GET,DELETE,OPTIONS")
fiery
is awesome! It makes some project much more easy.I'm using fiery with node: write a app and use node to
fetch
this. While, there is a CORS problem:Chorme console:
I think it could be handled in the fiery, wondering if there is any method to set Access-Control-Allow-Origin in the header.