Project

cors-ui

0.0
The project is in a healthy, maintained state
A simple UI for controlling the CORS settings that ship with Rack CORS Middleware.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 2.0
>= 7.0.0
 Project Readme
cors-logo

Overview

Cors::Ui is a Rails Engine that provides a web interface for inspecting and testing CORS (Cross-Origin Resource Sharing) configurations in your Rails application.

Cross-Origin Resource Sharing (CORS) is a security feature that restricts cross-origin HTTP requests. In Rails, you can configure CORS using the rack-cors gem to define allowed origins, methods, and headers.

Installation

Add this line to your application's Gemfile:

gem "cors-ui"

Then execute:

bundle install

Or install it manually:

gem install cors-ui

Integration

After installation, mount the engine in your config/routes.rb file:

mount Cors::Ui::Engine, at: "/cors"

This will make the CORS UI accessible at /cors in your application.

Usage

Once the engine is mounted, you can access the UI to configure CORS settings visually. The interface allows you to:

  • Visualize CORS configurations across your application
  • Inspect CORS settings for different routes
  • View default CORS headers and configurations
  • Easy integration with Rails applications

Home View:

home

Dashboard View:

dashboard

Contributing

We welcome contributions! If you'd like to improve the project:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit (git commit -m "Your message").
  4. Push to your branch (git push origin feature-branch).
  5. Open a Pull Request.

License

This gem is available as open-source under the terms of the MIT License.