castle, padlock, security

Rack CORS origins via ENV var and Regex

Rack CORS is a Ruby gem that you can use to enable Cross Origin Resource Sharing (CORS) support in your application. CORS errors are common issues when you have an API-only Rails Application with a separate front end. The basic configuration looks like: In this example, we’ve set origins to “*” which will: allow any …

Rack CORS origins via ENV var and Regex Read More ยป