Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator for Rack CORS #27

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Generator for Rack CORS #27

wants to merge 21 commits into from

Conversation

mausamp
Copy link
Collaborator

@mausamp mausamp commented May 9, 2024

No description provided.

source_root File.expand_path("templates", __dir__)

class_option :origins, type: :string, default: '*',
desc: 'Specify which origins are allowed to make CORS requests'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask user to add multiple origins with space separated value

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ should accept an array

private

def show_alert_message
say "❗️❗️\nPlease restart your rails server for the changes to take effect.\n", :yellow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to Readme as Abhay suggests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants