Skip to content

Commit

Permalink
avoid CORS issue by using window.location
Browse files Browse the repository at this point in the history
Signed-off-by: David Ahmadov <[email protected]>
  • Loading branch information
ahmedavid committed Nov 27, 2023
1 parent a67d93d commit 84eae82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/cve-feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}

setInterval(() => {
fetch("https://k8s.io/docs/reference/issues-security/official-cve-feed/index.json")
fetch(`${window.location.origin}/docs/reference/issues-security/official-cve-feed/index.json`)
.then(resp => resp.json())
.then(content => {
tbody.innerHTML = renderCVEs(content.items)
Expand Down

0 comments on commit 84eae82

Please sign in to comment.