Comments (10)
I've added the option to proxy the API requests,
widget:
type: pihole
url: http://pi.hole
proxy: true # this will enable the CORS proxy
from homepage.
I'm getting follow error when I have proxy on or off.
The Same Origin Policy disallows reading the remote resource at http://10.10.10.10/admin/api.php. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
config
- Pihole:
icon: pihole.png
href: http://10.10.10.10/admin
descriptition: Pihole Server
widget:
type: pihole
url: http://10.10.10.10
#proxy: true # Optional, only use if it doesn't work otherwise
UPDATE: Sorry, Production outage. Brain not working. Fix words
from homepage.
I've added the option to proxy the API requests,
widget: type: pihole url: http://pi.hole proxy: true # this will enable the CORS proxy
Thanks for looking at this so quickly. I've pulled the latest version and am not getting an internal server error when I try and load the page. (This is with or without the proxy:true
line).
The container logs are giving the following information:
TypeError: handler is not a function
at Server.<anonymous> (/app/server.js:19:11)
at Server.emit (node:events:513:28)
at parserOnIncoming (node:_http_server:980:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
from homepage.
It was an unrelated bug, which has been fixed now.
from homepage.
It was an unrelated bug, which has been fixed now.
Thanks!
from homepage.
I'm still getting the API error. I have tried to target the IP and port directly (http://192.168.1.254/admin) and I have tried with the proxy setting set to true and still nothing.
from homepage.
What version of PiHole are you running?
from homepage.
What version of PiHole are you running?
v5.18.1
from homepage.
I'm getting a similar error with the SAB API call:
TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:393:5) at URL.onParseError (node:internal/url:564:9) at new URL (node:internal/url:644:5) at genericProxyHandler (/app/.next/server/pages/api/services/proxy.js:379:19) at async Object.apiResolver (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/api-utils/node.js:366:9) at async NextNodeServer.runApi (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:469:9) at async Object.fn (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:719:37) at async Router.execute (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/router.js:247:36) at async NextNodeServer.run (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:346:29) at async NextNodeServer.handleRequest (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:284:20) { input: 'undefined/api/?apikey=d164c44b2bbffd08c7f731990e25fc2d&output=json&mode=queue', code: 'ERR_INVALID_URL' }
from homepage.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.
from homepage.
Related Issues (20)
- Healthchecks new updated widget HOT 2
- [Bug] siteMonitor option for Proxmox Backup Server widget causes error to be logged on PBS HOT 4
- [Bug] ical Calendar widgets multiplies events HOT 3
- [Bug] Kavita Widget - JSON Error using HOMEPAGE_VAR env keys HOT 1
- Romm widget documentation incorrect HOT 2
- [Bug] adding a .env file to homepage breaks the docker integration on unraid HOT 1
- [Bug] Unifi widget does not set widget.fields if none are configured HOT 10
- [Bug] Container image missing `iputils` -- ping property fails HOT 6
- [Bug] Quick launch not opening with german Umlaut characters HOT 1
- Cloudflare tunnel error HOT 3
- UniFi Dream Router error / no information shown HOT 1
- [Bug]: mjpeg widget places background over icon HOT 4
- [BUG] iCal Integration with all-day events HOT 1
- [BUG] Google search suggestions fail with accented characters HOT 1
- [Bug] Omada widget not showing connected switches HOT 1
- Quick Launch Feature Does Not Support Cyrillic Input HOT 2
- [BUG] `gamedig` widget fails when `fields` specified in docker labels HOT 3
- Cannot navigate to tabs with diacritics HOT 1
- Pihole widget error when `ads_percentage_today` is string type HOT 4
- [Bug] Pihole widget leaks auth token in API error messages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homepage.