Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7536271 commit d1da171Copy full SHA for d1da171
java-api/src/main/java/com/java_api/java_api/controller/TaskController.java
@@ -13,6 +13,11 @@
13
import java.util.Optional;
14
15
@RestController
16
+@CrossOrigin(origins = {
17
+ "https://danielvor.onrender.com",
18
+ "https://seu-app.vercel.app",
19
+ "http://localhost:3000"
20
+})
21
@RequestMapping("/api/tasks")
22
public class TaskController {
23
@@ -76,4 +81,4 @@ public ResponseEntity<HttpStatus> deleteTask(@PathVariable String id) {
76
81
return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
77
82
}
78
83
79
-}
84
+}
0 commit comments