mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 09:59:41 +05:00
feat: restore player, voiceover and episode saving for custom player
This commit is contained in:
parent
cdce98b7e6
commit
03af84fd2d
5 changed files with 90 additions and 27 deletions
|
@ -29,7 +29,7 @@ export default async function middleware(
|
|||
let data = null;
|
||||
path = decodeURIComponent(path);
|
||||
|
||||
if ((isHTML || isNotAnixart) && !path.startsWith("https://kodik.info")) {
|
||||
if ((isHTML || isNotAnixart) && !(path.startsWith("https://kodik.info") || path.startsWith("https://aniqit.com"))) {
|
||||
return new Response(JSON.stringify({ message: "URL not allowed" }), {
|
||||
status: 403,
|
||||
headers: {
|
||||
|
@ -85,7 +85,7 @@ export default async function middleware(
|
|||
path = decodeURIComponent(path);
|
||||
|
||||
if (isNotAnixart) {
|
||||
if (!path.startsWith("https://kodik.info")) {
|
||||
if (!(path.startsWith("https://kodik.info") || path.startsWith("https://aniqit.com"))) {
|
||||
return new Response(JSON.stringify({ message: "URL not allowed" }), {
|
||||
status: 403,
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue