Skip to content

Commit

Permalink
set cors
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Jun 10, 2015
1 parent 7cc14ba commit 29a3822
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions misc/gs-cors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"origin": ["http://localhost.com:8080", "http://localhost:8080", "http://streak.club", "https://streak.club", "http://streak.club:8080", "https://streak.club:8080"],
"responseHeader": ["*"],
"method": ["POST"],
"maxAgeSeconds": 3600
}
]
7 changes: 7 additions & 0 deletions misc/set_cors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

gsutil cors set gs-cors.json gs://streakclub
gsutil cors set gs-cors.json gs://streakclub_dev

gsutil cors get gs://streakclub
gsutil cors get gs://streakclub_dev

0 comments on commit 29a3822

Please sign in to comment.