Fix favicon CORS failures and libcurl transport connection issues#18
Fix favicon CORS failures and libcurl transport connection issues#18
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
…lity Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
…nfiguration globally, use constants for proxy paths Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
|
@copilot still fix the favicons not loading in the proxys tabs (index):1 Access to fetch at 'https://duckduckgo.com/favicon.ico' from origin 'https://vxv3wf-8080.csb.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error |
…on URLs Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Fixed in c4015e6. Added safety checks to prevent CORS errors:
External favicon URLs that can't be proxied are now silently skipped instead of causing CORS errors. |
|
@copilot somtimes the favicons wont load, it sometimes works and somtimes dose not, and somtimes the favicons and page titles do not update. fix this |
… and MutationObservers Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Fixed in cd036d8. Improved favicon and title loading reliability:
These changes should make favicon and title updates much more consistent. |
|
libcurl still disconnects from scramjet @copilot rendomley and can not reconect, causing epoxy to default, leading to wss issues when site call on it. fix this |
…ring, and recovery Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Fixed in e0da2f4. Improved libcurl transport reliability:
This should prevent libcurl from randomly disconnecting and defaulting to epoxy. |
Issue 1: Fix favicon loading in tabbar (CORS issues)
sanitizeUrlfunction inindex.htmlto allowdata:protocol URLs for base64-encoded favicon imagesextractPageInfoinclient.jsto properly detect external favicon URLs and proxy them viaencodeProxyUrl()instead of using them directlylocation.originSCRAMJET_PREFIX,UV_PREFIX) for proxy path detectionisSafeFaviconUrl()helper function to validate URLs before fetchfetchFaviconAsDataUrl()to reject external URLs (CORS prevention)updatePageInfo()to only use favicon URLs as fallback if they are safeIssue 2: Fix libcurl transport not connecting correctly after first search
forceRefreshparameter toensureTransportConfigured()to allow forcing transport reconfigurationloadProxiedUrlScramjetandloadProxiedUrlUltraviolet) to ensure fresh connectionresetTransportConfiguration()utility function and expose it globally viawindow.resetTransportConfigurationIssue 3: Fix TypeError in favicon onerror handler
parentElementin favicon image onerror handlers to preventCannot set properties of nullerrorIssue 4: Improve reliability of favicon and title loading
Issue 5: Fix libcurl random disconnection and reconnection issues
ensureTransportConfigured()- up to 3 retriesconfigureTransportWithRecovery()helper for robust retry with fresh reset on failurelastTransportConfigTimetracking for staleness detectionRun code review and security checks (no security issues found)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.