Skip to content

Commit

Permalink
patch: add cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmcgowan committed Dec 4, 2023
1 parent 795c493 commit 1cba9e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-cars-notice.md
@@ -0,0 +1,5 @@
---
"submitjson": patch
---

Adds cors header to request + update docs
1 change: 1 addition & 0 deletions index.ts
Expand Up @@ -36,6 +36,7 @@ export default class SubmitJSON {
private getHeaders() {
return {
'X-API-Key': this.apiKey,
'Access-Control-Allow-Origin': '*',
}
}

Expand Down

0 comments on commit 1cba9e6

Please sign in to comment.