Skip to content

Commit

Permalink
Merge pull request #156 from galasa-dev/origin-header
Browse files Browse the repository at this point in the history
Removed access control allow origin header with any origin
  • Loading branch information
jadecarino committed Jun 4, 2024
2 parents 5c25c07 + f1eaa12 commit e16918e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion build-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Options are:
Environment Variables:
SOURCE_MAVEN :
Used to indicate where parts of the OBR can be obtained.
Optional. Defaults to https://galasadev-cicsk8s.hursley.ibm.com/main/maven/obr/
Optional. Defaults to https://development.galasa.dev/main/maven-repo/obr/
LOGS_DIR :
Controls where logs are placed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t

RequestDispatcher rd = request.getRequestDispatcher("/index.html");

response.setHeader("Access-Control-Allow-Origin", "*");
rd.include(request, response);


Expand Down Expand Up @@ -75,7 +74,6 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
Request post = Request.Post("http://host.docker.internal:2080/updateAccount").bodyString(xml, ContentType.APPLICATION_XML);
Response resp = post.execute();
HttpResponse simbankResp = resp.returnResponse();
response.setHeader("Access-Control-Allow-Origin", "*");
int statusCode = simbankResp.getStatusLine().getStatusCode();
response.reset();
response.setStatus(statusCode);
Expand Down

0 comments on commit e16918e

Please sign in to comment.