3124: added listprice to printproduct and public access to product and designers (#138)
This commit is contained in:
+4
-1
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user