mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update APIV1Controller, fix cors bug
This commit is contained in:
parent
11cd75e8e8
commit
55ee29f301
1 changed files with 4 additions and 2 deletions
|
@ -86,7 +86,9 @@ class ApiV1Controller extends Controller
|
|||
'client_secret' => $client->secret,
|
||||
'vapid_key' => null
|
||||
];
|
||||
return $res;
|
||||
return response()->json($res, 200, [
|
||||
'Access-Control-Allow-Origin' => '*'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue