-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to add custom response headers #312
Comments
I was able to attach filter to resources by setting order to Ordered.HIGHEST_PRECEDENCE. When using Ordered.LOWEST_PRECEDENCE order, filter is skipped by asset requests. Not sure if this is correct solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Tried on grails plugin version 3.4.7 with Java 8
The text was updated successfully, but these errors were encountered: