Skip to content

Commit

Permalink
added crossorigin
Browse files Browse the repository at this point in the history
  • Loading branch information
DharshiBalasubramaniyam committed Jun 30, 2024
1 parent e3f9540 commit 4f7d87c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package com.dharshi.springboot_cicd.controllers;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin(origins = "*")
public class Controller {

@GetMapping("/home")
public ResponseEntity<String> home() {
return ResponseEntity.ok("Welcome to Spring Boot CI/CD Pipeline with GitHub Actions, Docker and AWS ECS!");
return ResponseEntity.ok("Hello, Welcome to Spring Boot CI/CD Pipeline with GitHub Actions, Docker and AWS ECS!");
}

}
Expand Down

0 comments on commit 4f7d87c

Please sign in to comment.