bertramdev / grails-asset-pipeline

Grails Asset Pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility to add custom response headers

igorko opened this issue · comments

I was trying to add custom headers to assets responses. It was easy to do this with Grails 2 using resource mappers from grails-resources plugin. Now with latest Grails 4.1.2 and Grails 5. 2.5 it's not possible to Intercept resource responses. Spring Boot Filter and Grails Interceptor can only Intercept requests done by client, and all the rest assets requests, that are auto generated, where request initiator is page itself (loading assets, that are defined in gsp) are not intercepted. Using matchAll() in Grails Interceptor doesn't work too.

Wrong project