Skip to content

Commit

Permalink
log headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed May 29, 2024
1 parent cbe2817 commit fa1d4e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utopia-remix/app/util/assets.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ export async function getProxyAssetPath(req: Request): Promise<string | null> {
}

export function getProjectIdFromReferer(req: Request): string | null {
const referer = req.headers.get('referer')
const referer = req.headers.get('Referer')
console.warn(
`referer: no referer in the request headers for ${req.url} ${Array.from(req.headers.keys())}`,
)
if (referer == null) {
console.warn(`referer: no referer in the request headers`)
return null
}

Expand Down

0 comments on commit fa1d4e5

Please sign in to comment.