One way to do this would be to serve your static content using a view
callable and add the X-Content-Type-Options header the response:
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#advanced-serving-static-assets-using-a-view-callable

On Fri, Jul 8, 2016 at 9:08 AM, Marcin Raczyński <[email protected]
> wrote:

> I have static view configured:
>
>
> config.add_static_view(name='static', path='mypackage:assets')
>
>
> I want every static file response has header "X-Content-Type-Options".
>
> How can I do it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/f925aadb-8210-4841-8e32-c41abceb3164%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/f925aadb-8210-4841-8e32-c41abceb3164%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vincent Catalano
Software Engineer and Web Ninja,
(520).603.8944

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAEhnOsz0B8PAi-rmZZuJt5dTQqsu0ndOfzSQ-HnTYs2tjG3%3D1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to