Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 272dc17

Browse files
committed
DATAREST-1020 - Mention correct method in reference docs to configure global CORS mappings.
Point in reference documentation to `addMapping(...)` instead of `addCorsMapping(...)`.
1 parent 7295535 commit 272dc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/asciidoc/configuring-cors.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class SpringDataRestCustomization extends RepositoryRestConfigurerAdapter
6161
@Override
6262
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
6363
64-
config.getCorsRegistry().addCorsMapping("/person/**")
64+
config.getCorsRegistry().addMapping("/person/**")
6565
.allowedOrigins("http://domain2.com")
6666
.allowedMethods("PUT", "DELETE")
6767
.allowedHeaders("header1", "header2", "header3")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /