lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

82
active users

Dr. Angus Andrea Grieve-Smith

I successfully implemented an allow list for headers in !

$allowedOrigins = ["friendly.site"];

header("Access-Control-Allow-Headers: Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers");

$headers = apache_request_headers();
if (!array_key_exists("Origin", $headers)) {
return;
}

if (in_array($headers["Origin"], $allowedOrigins)) {
header("Access-Control-Allow-Origin: " . $headers["Origin"]);
}