mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d40284b1a4
In this way we avoid HTML, XML, SVG and other files that can be rendered by the browser to be served inline by default. Depending on the origin from where these files are served, this might lead to XSS vulnerabilities, and in the best case, to more realistic phishing attacks and open redirects. We force it rather than falling back to it when other disposition is not provided. Otherwise it would be possible for someone to force inline just by passing `disposition=inline` in the URL. The list of content types to be served as attachments is configurable. |
||
---|---|---|
.. | ||
assets/javascripts | ||
controllers | ||
javascript/activestorage | ||
jobs/active_storage | ||
models/active_storage |