Record<string, string | string[]>undefinedAdds headers to all responses sent from Rsbuild server. This configuration directly leverages Node.js response.setHeader() method under the hood.
If the header already exists in the to-be-sent headers, its value will be overwritten.
To set CORS headers like Access-Control-Allow-Origin, use server.cors option.
If both server.headers and server.cors are used, server.headers will override server.cors.
The server.headers option accepts an object where:
Use an array of strings to send multiple headers with the same name.