-
Return a blank JSON response for a missing .js file to prevent Rails CSRF errors · 79a829a0Stan Hu authored
The default 404 handler would return the Content-Type format based on the given format extension. This would cause the Rails CSRF protection to flag an error, since the .js extension gets mapped to text/javascript format. Closes #40771
79a829a0
×