Closed heliomar-pena closed 2 years ago
I added the middleware to handle the access-control-allow-origin header, so block the requests from unexpected origins.
access-control-allow-origin
Now you can add the allowed sites in the .env file separated by commas ,
,
I tested this by giving access to the Rust documentation and making a request to the endpoint:
And then making a request from an unexpected website:
I added the middleware to handle the
access-control-allow-origin
header, so block the requests from unexpected origins.Now you can add the allowed sites in the .env file separated by commas
,
I tested this by giving access to the Rust documentation and making a request to the endpoint:
And then making a request from an unexpected website: