mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 03:41:58 +00:00
Add CORS header to default config
This commit is contained in:
parent
93a29e0efc
commit
e3a60ec9df
3 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"ipp": {
|
||||
"responseHeaders": {
|
||||
"Cache-Control": "public, max-age=2592000"
|
||||
"Cache-Control": "public, max-age=2592000",
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
},
|
||||
"singleImageGallery": false,
|
||||
"singleItemAutoOpen": true,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "immich-public-proxy",
|
||||
"version": "1.4.5",
|
||||
"version": "1.4.6",
|
||||
"scripts": {
|
||||
"dev": "ts-node src/index.ts",
|
||||
"build": "npx tsc",
|
||||
|
|
|
@ -117,6 +117,7 @@ app.get('/healthcheck', async (_req, res) => {
|
|||
* reverse proxy config, or even redirect to 404 if you like.
|
||||
*/
|
||||
app.get('/', (_req, res) => {
|
||||
addResponseHeaders(res)
|
||||
res.render('home')
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue