AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

Access to XMLHttpRequest at 'https://sua-ap-web-1.agora.io/api/v1?action=stringuid' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. #128

Open xavieryang2011 opened 3 years ago

xavieryang2011 commented 3 years ago

Access to XMLHttpRequest at 'https://sua-ap-web-1.agora.io/api/v1?action=stringuid' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

jetlej commented 3 years ago

I have this too when using a string for the UID when joining a channel

plutoless commented 3 years ago

it only happens when using string uid?

xavieryang2011 commented 3 years ago

yes,when using string uid,change it to int will be fine

plutoless commented 3 years ago

i think it's one of our string uid server down. we have multiple requests to multiple server so it should not affect your usage. you may simply ignore it.

SouiherNajahYoutube commented 3 years ago

changing string to number in sdk doesin't fix this issue! cannot access to channel