Skip to content

Commit

Permalink
not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Lin committed Jan 21, 2019
1 parent e824f6d commit 8931fe0
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer;
import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -22,7 +21,6 @@ public static void main(String[] args) {
SpringApplication.run(ResSvrApplication.class, args);
}

@CrossOrigin
@GetMapping("/hello")
public String hello(OAuth2Authentication oauth) {
return "hello " + oauth.getPrincipal();
Expand Down

0 comments on commit 8931fe0

Please sign in to comment.