Merge branch 'master' of github.com:mcndt/obsidian-note-sharing

This commit is contained in:
Maxime Cannoodt 2022-06-30 21:39:54 +02:00
commit f0d11b9cdb
2 changed files with 10 additions and 11 deletions

View File

@ -11,16 +11,13 @@ const prisma = new PrismaClient();
const app: Express = express(); const app: Express = express();
app.use(express.json()); app.use(express.json());
app.use(helmet()); app.use(
helmet({
// Allow CORS in dev mode. crossOriginResourcePolicy: {
if (process.env.ENVIRONMENT == "dev") { policy: process.env.ENVIRONMENT == "dev" ? "cross-origin" : "same-origin",
app.use( },
cors({
origin: "*",
}) })
); );
}
// Apply rate limiting // Apply rate limiting
const postLimiter = rateLimit({ const postLimiter = rateLimit({

View File

@ -5,7 +5,9 @@
> >
<div id="navbar-left" class="flex gap-6"> <div id="navbar-left" class="flex gap-6">
<a href="/" class="self-center h-full pb-0.5"> <a href="/" class="self-center h-full pb-0.5">
<span id="name" class="self-center font-bold text-lg dark:text-white">Noteshare.space</span> <span id="name" class="self-center font-bold text-lg dark:text-white"
>{import.meta.env.VITE_BRANDING}</span
>
</a> </a>
<ul class="flex gap-2 content-center"> <ul class="flex gap-2 content-center">
<slot name="left" /> <slot name="left" />