Access to XMLHttpRequest at ‘JSON Web Tokens - jwt.io’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Here i am new to the this feild can anyone help me to clear my doubt how to generate JWT tockens and what can be give in botOptions.JWTUrl = “”.
@raj.sharma9
In case you want to obfuscate your client id and secret and not expose to users, you can refer this update on below thread. Required c# code instead of Js functions for Kore bot Implementation
i don’t know what is wrong but i am getting this error please help me out to solve?
hi can you help me to get any jwt url so that i can check as when i open the link http://localhost:3000/api/users/sts it is not providing any output?
is webSDK or SDKApp both are different we have to follow both or just i m doing it with only webSDK is correct? Sorry for this stupid question…
@raj.sharma9
WebSDK consumes JWT service.
JWT gives -
- A Demo JWT service
- A demo local server to serve the content of index.html.
Hope this helps.
@raj.sharma9
Can you show the network tab (instead of vonsole) what is the response for jwtgrant?
Ensure you have published your bot.
here is the network tab saying Client error
What this means is that the client id and secret you are using are not the ones from the app that is published (assuming) with the bot’s web/mobile channel.
You will need to ensure same client id, secret, botid combination is used and it is in sync with bot’s channel and web-sdk. Also publish is important.
1 Like
Hi Again, I have mapped bot id n other things well tried 2-3 time with different bots still facing this issue. Kindly help me out
I see you are using 8080 to server index.html but yourJWT is probably on 3030, while that does not make any difference, just ensure local JWT is running. In case you want to obfuscate your client id and secret and not expose it to users, you can refer to this update below thread. It’s really a nice and helpful dissertation writing services piece of information. I’m glad that you shared this helpful info with us.