mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Allow embedding of share page.
This commit is contained in:
parent
9cb6046844
commit
eda2c07ea3
10 changed files with 58 additions and 39 deletions
|
|
@ -74,7 +74,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
await useCors(req, res);
|
||||
|
||||
if (req.method === 'POST') {
|
||||
if (isbot(req.headers['user-agent']) && !process.env.DISABLE_BOT_CHECK) {
|
||||
if (!process.env.DISABLE_BOT_CHECK && isbot(req.headers['user-agent'])) {
|
||||
return ok(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue