summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-23 22:02:33 -0800
committerStan Hu <stanhu@gmail.com>2018-01-23 22:24:30 -0800
commit79a829a0372a974bb3d40e66ca3fdc213200db40 (patch)
tree54faeb40627528221553a4d108c317eb4d8bb86a /shared
parent4bf2fded92e05420e6d103c8df63d6d83198a684 (diff)
downloadgitlab-ce-79a829a0372a974bb3d40e66ca3fdc213200db40.tar.gz
Return a blank JSON response for a missing .js file to prevent Rails CSRF errorssh-fix-cross-site-forgery-errors
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
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions