We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9825637 commit ec2ee46Copy full SHA for ec2ee46
1 file changed
packages/server/api/src/app/flow-template/cloud-template.controller.ts
@@ -23,12 +23,10 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
23
return;
24
}
25
26
- // cloud templates are available on any origin
27
- app.addHook('onSend', allowAllOriginsHookHandler);
28
-
29
app.get(
30
'/',
31
{
+ onSend: [allowAllOriginsHookHandler],
32
config: {
33
allowedPrincipals: ALL_PRINCIPAL_TYPES,
34
skipAuth: true,
@@ -70,6 +68,7 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
70
68
71
69
'/:id',
72
73
74
75
0 commit comments