Skip to content

Commit

Permalink
allow firebase hostign deploy previews in CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Aug 24, 2024
1 parent 14d06ad commit d68d92b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const httpServer = http.createServer(app)
app.use(cors({
origin: [
/(^https?:\/\/|\.)ropescore\.(com|app|live)(:\d+)?$/,
/^https?:\/\/ropescore-(app|live|core)--[^.]+\.web\.app(:\d+)?$/,
/^app:\/\//,
/^https?:\/\/localhost(:\d+)?$/,
'https://studio.apollographql.com'
Expand Down

0 comments on commit d68d92b

Please sign in to comment.