mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
WebServer: Serve X-Frame-Options and X-Content-Type-Options HTTP headers
This commit is contained in:
parent
87d19273bc
commit
4ae3bfa40d
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…
Add table
Add a link
Reference in a new issue