Hello Jie,

I was able to find this documentation 
<https://cloud.google.com/appengine/docs/standard/java/config/appref> that 
may help you. To find more information, can you please provide more detail 
about the header only being added to html resources? If you are using the 
Spring Framework, I have found the information here 
<https://stackoverflow.com/questions/43481539/spring-how-can-i-add-a-header-to-all-responses-that-i-return>
 
that may assist you. I hope this is of value to you regarding if you can 
add response headers to all responses.

On Friday, November 13, 2020 at 10:23:21 AM UTC-5 [email protected] wrote:

> Hi Support team
>
> Could we add http response headers via the configuration in 
> appengine-web.xml?
>
> I have tried to add the following to appengine-web.xml. however the header 
> is only added to html resources.  Is it possible that we can add respone 
> headers to all responses? 
> For Jetty, it is possible by using rewrite in Jetty configuration but 
> don't want directly configure Jetty (like add Jetty filters, etc )
>
> thank you
>
> Jie
>
> <static-files>
> <include path="/**" >
> <http-header name="Access-Control-Allow-Origin"
> value="http://example.org"; />
> </include>
> </static-files>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/00e53db8-ab5f-4289-b741-12d3000d78b7n%40googlegroups.com.
  • [google-appengine... jie lin
    • [google-appe... 'Elliott (Cloud Platform Support)' via Google App Engine

Reply via email to