Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# Let GitHub Codespaces open the app through its forwarded address.
config.hosts << ".app.github.dev"

# Codespaces serves the app over HTTPS through a proxy that talks plain HTTP to Rails, so the
# browser's Origin header never matches and every form post would fail the CSRF origin check.
# The authenticity token is still checked.
config.action_controller.forgery_protection_origin_check = false if ENV["CODESPACES"]

# Settings specified here will take precedence over those in config/application.rb.

# Make code changes take effect immediately without server restart.
Expand Down
Loading