mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
WebServer: Serve X-Frame-Options and X-Content-Type-Options HTTP headers
This commit is contained in:
parent
87d19273bc
commit
4ae3bfa40d
Notes:
sideshowbarker
2024-07-18 21:40:30 +09:00
Author: https://github.com/bcoles Commit: https://github.com/SerenityOS/serenity/commit/4ae3bfa40d1 Pull-request: https://github.com/SerenityOS/serenity/pull/5650 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ void Client::send_response(InputStream& response, const HTTP::HttpRequest& reque
|
|||
StringBuilder builder;
|
||||
builder.append("HTTP/1.0 200 OK\r\n");
|
||||
builder.append("Server: WebServer (SerenityOS)\r\n");
|
||||
builder.append("X-Frame-Options: SAMEORIGIN\r\n");
|
||||
builder.append("X-Content-Type-Options: nosniff\r\n");
|
||||
builder.append("Content-Type: ");
|
||||
builder.append(content_type);
|
||||
builder.append("\r\n");
|
||||
|
|
Loading…
Reference in a new issue