Сообщения

Сообщения за октябрь, 2022

CORS another one

devtools console helps: Access to XMLHttpRequest at 'http://localhost:8443/api/essay/6' from origin 'http://localhost:8082' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Access to fetch at 'http://localhost:8443/graphql' from origin 'http://localhost:8082' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. login:109 Access to fetch at 'http://localhost:8443/graphql' from origin 'http://localhost:8082' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on th

@Transactional(propagation = Propagation.REQUIRES_NEW)

 @Transactional(propagation = Propagation.REQUIRES_NEW)     public BigDecimal getCurrentUserBonus(UserEntity user) { final Page<UserProfileDto> map = filtered.map(user -> {             UserEntity user2 = userService.fetchAllEagersUser(user);             BigDecimal currentUserBonus = userService.getCurrentUserBonus(user2);             user2.setCurrentBonusBalance(currentUserBonus);// it's async!!!!!!!!!!!             return new UserProfileDto(user2);         });