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

Prevent InvalidAuthenticityToken & Infinite Loop #44

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

leightjohnson93
Copy link

skip_before_action :verify_authenticity_token prevents the InvalidAuthenticityToken while running this behind a reverse proxy. Since it is only used for development environments, I don't think there is much risk for doing this.

Removing log_file_full_path prevents an infinite loop I was seeing when running via docker container.

rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:156:in `parsed_file_contents'
rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:116:in `log_file_full_path'
rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:157:in `block in parsed_file_contents'
<internal:kernel>:90:in `tap'
rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:156:in `parsed_file_contents'
rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:116:in `log_file_full_path'
rake-ui (1d3779ffd621) app/models/rake_ui/rake_task_log.rb:157:in `block in parsed_file_contents'
 <internal:kernel>:90:in `tap'

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.

1 participant