Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unexpected Token / API Cors Error

Featured Replies

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

image.png.af95f23835efcdea4f17eef920f64091.pngthe same problem

  • Author

just found the fix for this 

unraid-api restart

put this in terminal, this fixed it for me.

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)

  • 1 month later...
On 8/8/2022 at 10:12 PM, 火染轩辕 said:

image.png.af95f23835efcdea4f17eef920f64091.pngthe same problem

not works for me, have other way?

20 hours ago, Alex1989 said:

not works for me, have other way?

 

Open a web terminal and type:

rm /boot/config/plugins/dynamix.my.servers/myservers.cfg
unraid-api restart

Then reload the webgui and you will now be signed out of Unraid.net. Go ahead and sign back in and you'll be all set unless you are using a reverse proxy.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.