We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a61f73 commit 233a89aCopy full SHA for 233a89a
App/functions/delta-dtm-transsect-plot/src/main.py
@@ -88,8 +88,12 @@ async def line_plot(
88
return Response(
89
content=buf.getvalue(),
90
media_type="image/png",
91
- headers={"Content-Disposition": 'attachment; filename="transect_plot.png"'},
+ headers={
92
+ "Content-Disposition": 'attachment; filename="transect_plot.png"',
93
+ "Access-Control-Allow-Origin": "*",
94
+ },
95
)
96
+
97
except Exception as e:
98
# Log the error
99
print("Error generating plot:")
0 commit comments