Skip to content

Commit

Permalink
Fix for deployment 2
Browse files Browse the repository at this point in the history
  • Loading branch information
uo282892 committed May 3, 2023
1 parent 1cd2662 commit 86fbcaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion restapi/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let hostIp: string = "20.168.251.141";
api.use(
cors({
credentials: true,
origin: ["https://" + "lomapen3a.cloudns.ph", "https://" + hostIp, "https://localhost"],
origin: "*",
allowedHeaders: ["Content-Type", "Authorization"],
preflightContinue: true,
})
Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG API_URI="http://localhost:5000/api"
ARG API_URI="https://localhost:5000/api"
ENV REACT_APP_API_URI=$API_URI

#Create an optimized version of the webapp
Expand Down

0 comments on commit 86fbcaa

Please sign in to comment.