From 657c09230a1e22a481646d674d08ce1b1623ed16 Mon Sep 17 00:00:00 2001 From: unlishema Date: Sat, 20 Sep 2025 13:34:25 -0400 Subject: [PATCH] Added RS3 to test and adjusted a lot. --- dist/.htaccess | 2 +- dist/dev.html | 163 ++++++++++++++++++++++++++++++++++++++----------- src/.htaccess | 2 +- src/dev.html | 163 ++++++++++++++++++++++++++++++++++++++----------- 4 files changed, 260 insertions(+), 70 deletions(-) diff --git a/dist/.htaccess b/dist/.htaccess index bb510dd..ea4f9f2 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -36,7 +36,7 @@ Options -Indexes Header set X-XSS-Protection "1; mode=block" Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" Header set Referrer-Policy "strict-origin-when-cross-origin" - Header set Content-Security-Policy "default-src 'self' https://oldschool.runescape.wiki; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://oldschool.runescape.wiki; font-src 'self'; frame-ancestors http://unlishema.local https://unlishema.org https://*.unlishema.org" + Header set Content-Security-Policy "default-src 'self' https://runescape.wiki https://oldschool.runescape.wiki; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://oldschool.runescape.wiki; font-src 'self'; frame-ancestors http://unlishema.local https://unlishema.org https://*.unlishema.org" Header set Permissions-Policy "geolocation=(), microphone=(), camera=()" # Set the Host header to ensure requests target slayer.unlishema.org diff --git a/dist/dev.html b/dist/dev.html index 1f32558..e8c6272 100644 --- a/dist/dev.html +++ b/dist/dev.html @@ -17,8 +17,18 @@ color: #2c3e50; } + .left { + float: left; + width: 48%; + margin-right: 2%; + } + + .right { + float: right; + width: 48%; + } + .container { - max-width: 800px; margin: auto; } @@ -45,19 +55,22 @@ background-color: #fff; } - #querySearch { + #querySearch, + #querySearch-oldschool { width: 70%; padding: 8px; margin-right: 10px; } - #querySelect { + #querySelect, + #querySelect-oldschool { width: 33%; padding: 8px; margin-top: 10px; } - #itemSelect { + #itemSelect, + #itemSelect-oldschool { width: 70%; padding: 8px; margin-top: 10px; @@ -82,9 +95,10 @@ -
-

OSRS Wiki CORS Test

+
+

RS3 Wiki CORS Test

This page tests CORS with the OSRS wiki and demonstrates fetching data.

+

Search a Bucket

@@ -92,7 +106,7 @@
-
+


@@ -115,46 +129,118 @@
+
+

OSRS Wiki CORS Test

+

This page tests CORS with the OSRS wiki and demonstrates fetching data.

+ + +
+

Search a Bucket

+ +
+ +
+
+
+ +

Select an Item

+
+ +
+ +
+

Extracted Item Data (Max Shown: 10)

+
+

Select an item to display its data here.

+
+
+ +
+

Raw Data

+
+

Raw JSON data will appear here.

+
+
+