Hello!,
I have developed a simple Luminus web application.
I am trying to add CSP http header to response header when serving javascript files.
My folder structure is like this
project root
|
|
|-- resources
|
|
|--resources
|
|--public
|
|--js
|
|-my_js_file.js
|
|--src
|
|-clj
Just as an example, here is the output when I try to fetch response header for one of the included js files
$ curl -I http://127.0.0.1:8080/popper/popper.js
HTTP/1.1 200 OK
Server: undertow
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Date: Tue, 10 Sep 2019 11:28:50 GMT
Connection: keep-alive
Last-Modified: Thu, 05 Sep 2019 15:04:26 GMT
X-Content-Type-Options: nosniff
Content-Length: 0
Content-Type: text/javascript; charset=utf-8
The solution so far looks elusive and I think I need help here !
Please let me know if any further details are needed.
Thanks,
Sreeram