chore(query.php): give localhost access to query endpoint

This commit is contained in:
Cory Dransfeldt 2025-05-09 11:15:38 -07:00
parent 22bf2b47c2
commit 6995306517
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class QueryHandler extends BaseHandler
protected function ensureAllowedOrigin(): void protected function ensureAllowedOrigin(): void
{ {
$allowedHosts = ['coryd.dev', 'www.coryd.dev']; $allowedHosts = ['coryd.dev', 'www.coryd.dev', 'localhost'];
$origin = $_SERVER['HTTP_ORIGIN'] ?? ''; $origin = $_SERVER['HTTP_ORIGIN'] ?? '';
$referer = $_SERVER['HTTP_REFERER'] ?? ''; $referer = $_SERVER['HTTP_REFERER'] ?? '';

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.7.1", "version": "3.7.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.7.1", "version": "3.7.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"html-minifier-terser": "7.2.0", "html-minifier-terser": "7.2.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.7.1", "version": "3.7.2",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {