Rack CORS
Configure which web origins may read a Rack route.
cyu · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install rack-cors at version 3.0.0. Pass one synthetic allowed origin through the Rack middleware.
What we tested
3.0.0. Pass one synthetic allowed origin through the Rack middleware. The response included the configured origin in the access-control header.