skip to Main Content

Nginx – No 'Access-Control-Allow-Origin' header is present on the requested resource in Keycloak 21

I'm trying to configure React app to work with Keycloak 21 and Spring Boot gateway. When I open remotely hosted React page and page a GET request I get error into browser: Access to XMLHttpRequest at 'https://ip/realms/admin_console_realm/protocol/openid-connect/auth?response_type=code&client_id=admin_console_client&scope=openid&state=ze9ujRxcOaI9PhgKXozIsGd0VDCnjXSF9-u_t_8bXA0%3D&redirect_uri=http://ip/login/oauth2/code/keycloak&nonce=O9rOLQ0HH-eHZFi76hW08w2r3aCmn2Enm8df68HQvBA' (redirected from 'https://ip/api/microservice/dashboard/test')…

VIEW QUESTION

Mongodb – How to resolve the 'Factory method 'mongoDatabaseFactory' threw exception with message: Database name must not be empty' error in Spring Boot?

Error creating bean with name 'mongoDatabaseFactory' defined in class path resource. Failed to instantiate [org.springframework.data.mongodb.core.MongoDatabaseFactorySupport]: Factory method 'mongoDatabaseFactory' threw exception with message: Database name must not be empty I'm not sure what I'm doing wrong here. error message application.properties I…

VIEW QUESTION

Json – How to get all elements in arrays type Map and send to JSP file by JSTL in Spring

I have a JSON attribute's value in Java, I can get the value properly but I couldn't send to JSP file.. My JSON: periods = {"number":1,"name":"Tonight","startTime":"2023-06-05T22:00:00-04:00","endTime":"2023-06-06T06:00:00-04:00","isDaytime":false,"temperature":63,"temperatureUnit":"F","temperatureTrend":"rising","probabilityOfPrecipitation":{"unitCode":"wmoUnit:percent","value":null},"dewpoint":{"unitCode":"wmoUnit:degC","value":8.333333333333334},"relativeHumidity":{"unitCode":"wmoUnit:percent","value":50},"windSpeed":"9 mph","windDirection":"NW","icon":"https://api.weather.gov/icons/land/night/sct?size=medium","shortForecast":"Partly Cloudy","detailedForecast":"Partly cloudy. Low around 63, with temperatures rising to around 65 overnight. Northwest…

VIEW QUESTION
Back To Top
Search