changes.
This commit is contained in:
parent
49b2cc68a5
commit
287822f7fe
@ -69,7 +69,7 @@ public class SecurityConfig {
|
||||
corsConfiguration.setAllowedHeaders(List.of("Authorization", "Content-Type"));
|
||||
corsConfiguration.setAllowCredentials(true);
|
||||
corsConfiguration.setMaxAge(Duration.ofDays(1));
|
||||
corsConfiguration.addAllowedOrigin(StringUtils.join("https", "://", domain, ":", 443));
|
||||
corsConfiguration.addAllowedOrigin(StringUtils.join("https", "://", domain));
|
||||
|
||||
if (environment.matchesProfiles("dev")) {
|
||||
corsConfiguration.addAllowedOrigin("http://localhost:8888");
|
||||
|
||||
@ -2,7 +2,7 @@ import axios, {AxiosError, AxiosRequestConfig} from "axios";
|
||||
import {NotificationService} from "../services/NotificationService";
|
||||
import {ErrorResponse} from "../models/errorResponse";
|
||||
|
||||
export const apiUrl = "https://vkr.mskobaro.ru:8080/api/v1/";
|
||||
export const apiUrl = "https://vkr.mskobaro.ru:443/api/v1/";
|
||||
|
||||
export const get = async <R>(url: string, data?: any, doReject = true, showError = true) => await request<R>({
|
||||
url: url,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user