How to add headers to the response of static resources #4377
Unanswered
tqq1994516
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
It looks like A PR would be welcome to fix this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to add a header in leptos_routes, but it only worked for my router requests.
I saw in the function description that
file_and_error_handler_with_contextandfile_and_error_handlerare used to set static resources. I used the following method. Although the header printed in the terminal is as expectedResponseOptions(RwLock { data: ResponseParts { status: None, headers: {"cross-origin-opener-policy": "same-origin", "cross-origin-embedder-policy": "require-corp"} } }), the header I added is not present in the actual static resource response header.Beta Was this translation helpful? Give feedback.
All reactions