Skip to content

Commit 4d6cce5

Browse files
author
Michael Wunderlich
committed
working default API path for non CORS configuration
1 parent 8f6898c commit 4d6cce5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

public/app/scorekeep.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
var module = angular.module("scorekeep", ["ngRoute","ngResource"]);
2-
module.value('api', 'http://XXXXX.elasticbeanstalk.com/api/');
2+
/* API running at /api on the same domain name and port (no CORS) */
3+
module.value('api', '/api/');
4+
5+
/* API running on Elastic Beanstalk, frontend running locally or
6+
on a different domain (CORS) */
7+
// module.value('api', 'http://XXXXX.elasticbeanstalk.com/api/');
8+
9+
/* API running locally on port 5000, frontend on port 8080 (CORS) */
10+
// module.value('api', 'http://localhost:5000/api/');

0 commit comments

Comments
 (0)