Skip to content

Commit

Permalink
fix(web): view svg source code (#1151)
Browse files Browse the repository at this point in the history
fix: remove the cors header
  • Loading branch information
nourbalaha authored May 13, 2024
1 parent d9888aa commit d4b2b3b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const SvgViewer: React.FC<Props> = ({ url, svgRender }) => {
const fetchData = useCallback(async () => {
const res = await fetch(url, {
method: "GET",
headers: {
"Access-Control-Allow-Origin": "*",
},
});
if (res.status !== 200) {
setSvgText(t("Could not display svg"));
Expand Down

0 comments on commit d4b2b3b

Please sign in to comment.