Is there a way to set custom response headers for static file requests?
eg. I would like to install Access-Control-Allow-Origin: * when serving static files.
Access-Control-Allow-Origin: *
Yes, you can.
- url: /images static_dir: static/images http_headers: X-Foo-Header: foo X-Bar-Header: bar value
Here is the documentation
https://developers.google.com/appengine/docs/python/config/appconfig#Static_Directory_Handlers
You can not; the only thing you can do is transfer these static files by adding the Access-Control-Allow-Origin header in the response.
Access-Control-Allow-Origin