3124: added listprice to printproduct and public access to product and designers (#138)

This commit is contained in:
Arwid Thornström
2022-12-19 09:29:47 +01:00
committed by GitHub
parent 28d643003e
commit 62b93a3656
9 changed files with 69 additions and 8 deletions
+4 -1
View File
@@ -46,6 +46,9 @@ async function main() {
});
app.post('/login', async (req, res) => {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
try {
const response = await getClientAccessToken(req);
res.status(200).send(response);
@@ -57,7 +60,7 @@ async function main() {
app.use(
'/',
cors<cors.CorsRequest>(),
cors<cors.CorsRequest>('*'),
json(),
expressMiddleware(server, {
context: async ({ req }) => {