Skip to content

Commit

Permalink
docs: explain localhost:3000 origin
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
  • Loading branch information
bajtos committed Nov 6, 2023
1 parent 4cfff2e commit 49b563e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import assert from 'node:assert'
import Sentry from '@sentry/node'

const handler = async (req, res, apiKey, fetch) => {
// The origin is the electron app, which always has this address.
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:3000')
const address = req.url.split('/')[1].trim()
const fetchRes = await fetch(
Expand Down

0 comments on commit 49b563e

Please sign in to comment.