Does anyone can help me with the issue I described...
# help
k
Does anyone can help me with the issue I described above?
c
Can you show network requests when you hit the API? Is there a preflight check?
And then response headers for the preflight check
Can you enable cloudwatch logs for the API?
k
Where do I put this in my code?
Copy code
const processor = new sst.Function(this, "Processor", "processor.main");
new SubscriptionFilter(this, "Subscription", {
  logGroup,
  destination: new LogsDestinations.LambdaDestination(processor),
  filterPattern: FilterPattern.booleanValue("$.error", true),
});
r
You can enable access logs using
accessLog: true
in the Api construct’s props.