-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
source_root File.expand_path("templates", __dir__) | ||
|
||
class_option :origins, type: :string, default: '*', | ||
desc: 'Specify which origins are allowed to make CORS requests' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
No description provided.