Skip to content

Commit

Permalink
Set Access-Control-Allow-Private-Network
Browse files Browse the repository at this point in the history
Set Access-Control-Allow-Private-Network in the "eID-Client?status" response,
because it is required by (at least) Chrome.

See also: https://wicg.github.io/local-network-access/
  • Loading branch information
AlexanderS authored and misery committed Mar 15, 2023
1 parent 3a1f1ec commit e4a12fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network/HttpHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void HttpHandler::handleStatusRequest(StatusFormat pStatusFormat, const QSharedP

HttpResponse response(HTTP_STATUS_OK);
response.setHeader(QByteArrayLiteral("Access-Control-Allow-Origin"), QByteArrayLiteral("*"));
response.setHeader(QByteArrayLiteral("Access-Control-Allow-Private-Network"), QByteArrayLiteral("true"));
switch (pStatusFormat)
{
case StatusFormat::PLAIN:
Expand Down

0 comments on commit e4a12fe

Please sign in to comment.