Skip to content

CORS issue on a reverse proxy #914

@Deses

Description

@Deses

Describe the bug
I access the Speedtest tracker through http:\\speedtest.unraid.nas, and I'm having issues on Firefox (Librewolf actually) and Brave (Chrome too) because the charts.js library is trying to be retrieved from http:\\unraid.nas:10030 thus, getting an error.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource http://unraid.nas:10030/js/filament/widgets/components/chart.js?v=3.0.94.0 (Reason: CORS header 'Access-Control-Allow-Origin' missing).

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

ALSO: The "Admin panel" button that takes you to the login screen also has the wrong URL, it's pointing to http://unraid.nas:10030/admin rather than http://speedtest.unraid.nas/admin.
Once in the admin panel, the left menu items correctly have the right URL

I suspect the cause for both issues is the same.

Environment:

  • OS: Unraid
  • Architecture: amd64
  • Browser Brave, Librefox
  • Version 0.13.3

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions