Quantcast
Channel: Data Science, Analytics and Big Data discussions - Topics tagged data_science
Viewing all articles
Browse latest Browse all 787

Access control in plumber package in r

$
0
0

@sushilsingh8853 wrote:

When i call service from client side then give that error.
No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access. The response had HTTP status code 404.

I was trying to set request header-

cors <- function(res) {
res$setHeader(“Access-Control-Allow-Origin”, “*”)
plumber::forward()
}

But it’s not working

Please tell me how to set request header in plumber.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 787

Trending Articles