Unexpected Token / API Cors Error


Recommended Posts

Hey guys, today i noticed that unraid was showing unexpected token error under my username - under myserver section so then i tried incognito mode to check if its some cache related issue again same error then i tried edge browser to it see if its browser related error but there it is showing unraid api Cors error. So thought lets signing out and signing back again but then pop shows timed out error although earlier on unraid.net my server was showing up online and now its offline there but im still getting same error on webgui and it is still showing up as signed in on webgui.

Please help me fix this.

Update: now its showing online again on unraid.net

Update 2: added diagnostics for in case they are needed for this issue.

unraid.local-diagnostics-20220807-1157.zip

Edited by Max
added diagnostics
Link to comment

A CORS error means you are not using an expected URL to access the server.

 

If you open a web terminal and run:

  unraid-api report -vv

it will list out all of the expected urls in the ALLOWED_ORIGINS area. As long as you use one of those you should not get the CORS error.

 

Note: that command (with two v's) is Very Verbose, meaning it is not anonymized. If you want to post the output in the forums use a single -v (for Verbose)

  • Like 1
Link to comment
  • 1 month later...