File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
src/main/java/es/in2/issuer/infrastructure/config/security Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ v1.2.4] ( https://github.com/in2workspace/in2-issuer-api/releases/tag/v1.2.3 )
8+ ### Changed
9+ - Fix a problem with a cors endpoint.
10+
711## [ v1.2.3] ( https://github.com/in2workspace/in2-issuer-api/releases/tag/v1.2.3 )
812### Added
913- Add cors configuration for externals clients on the issuance endpoint.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ plugins {
1111}
1212
1313group = ' es.in2'
14- version = ' 1.2.3 '
14+ version = ' 1.2.4 '
1515
1616java {
1717 sourceCompatibility = ' 17'
Original file line number Diff line number Diff line change 99
1010import java .util .List ;
1111
12- import static es .in2 .issuer .domain .util .EndpointsConstants .PUBLIC_CREDENTIAL_OFFER ;
13- import static es .in2 .issuer .domain .util .EndpointsConstants .PUBLIC_DISCOVERY_ISSUER ;
12+ import static es .in2 .issuer .domain .util .EndpointsConstants .*;
1413
1514@ Configuration
1615@ RequiredArgsConstructor
@@ -33,9 +32,9 @@ public UrlBasedCorsConfigurationSource externalCorsConfigurationSource() {
3332 UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource ();
3433 source .registerCorsConfiguration (PUBLIC_CREDENTIAL_OFFER , configuration );
3534 source .registerCorsConfiguration (PUBLIC_DISCOVERY_ISSUER , configuration );
36- source .registerCorsConfiguration ("/api/v1/issuances" , configuration );
37- source .registerCorsConfiguration ("/api/v1/deferred-credentials" , configuration );
38- source .registerCorsConfiguration ("/token" , configuration );
35+ source .registerCorsConfiguration (ISSUANCE , configuration );
36+ source .registerCorsConfiguration (DEFERRED_CREDENTIALS , configuration );
37+ source .registerCorsConfiguration (TOKEN , configuration );
3938 return source ;
4039 }
4140}
You can’t perform that action at this time.
0 commit comments