Error in userinfo endpoint - status 400 No 'Access-Control-Allow-Origin' header is present on the requested resource

I tested it in postman and received an error similar to

The problem was that the token was large because my custom claim was too large.
I fixed it by cleaning it and deleting redundant data.