Skip to content

Commit

Permalink
added allow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
allthingsclowd committed Sep 25, 2018
1 parent c35ec3e commit 908977b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func main() {

func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
(*w).Header().Set("Access-Control-Allow-Methods", "GET, POST, OPTIONS, PUT, PATCH, DELETE")
(*w).Header().Set("PageCountIP", targetIP)
(*w).Header().Set("PageCountServer", thisServer)
(*w).Header().Set("PageCountPort", targetPort)
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ EOF
echo 'Register nginx service with Consul Service Discovery Complete'
}

sudo mv /usr/local/bootstrap/webclient/wpc-fe /var/www/wpc-fe
sudo cp /usr/local/bootstrap/webclient/wpc-fe /var/www/wpc-fe
sudo cp /usr/local/bootstrap/conf/wpc-fe.conf /etc/nginx/conf.d/wpc-fe.conf

# remove nginx default website
Expand Down

0 comments on commit 908977b

Please sign in to comment.