Skip to content

Commit 02a429a

Browse files
committed
Update index.js and index.js.map files; add 'Origin' and 'Referer' headers to API request in main.ts
1 parent db7f5a5 commit 02a429a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ export async function run(): Promise<void> {
206206
headers: {
207207
'Content-Type': 'application/json',
208208
Authorization: `Bearer ${idToken}`,
209-
'X-Requested-With': 'XMLHttpRequest'
209+
'X-Requested-With': 'XMLHttpRequest',
210+
Origin: 'https://github.com',
211+
Referer: `https://github.com/${owner}/${repo}/pull/${pr}`
210212
},
211213
body: JSON.stringify({
212214
repo: { owner, name: repo, prNumber: pr },

0 commit comments

Comments
 (0)