sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

`bypass-checks` fails when cors is needed #2967

yakov116 posted onGitHub

https://github.com/sindresorhus/eslint-plugin-unicorn/pull/654 (or any pull there)

Access to fetch at 'https://codecov.io/gh/sindresorhus/eslint-plugin-unicorn/compare/b2838fdff7ecdc71008e049c9b1ad57da11aa224...2abde3bbf93d00305d0e85701c4b7be383fa9ed7' from origin 'https://github.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
refined-github.js:4104 ❌ Refined GitHub → bypass-checks → TypeError: Failed to fetch 

<!-- Thanks for reporting a bug! ⛰ 1. Make sure the bug is caused by Refined GitHub. Try disabling the extension first. 2. Include a full URL where the bug appears. 3. Include a screenshot/gif Issues without a URL/screenshot will be closed -->


Maybe it just needs this?

set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
posted by fregante about 5 years ago

We are not talking about that rule, right?

posted by fisker about 5 years ago

Null No :)

posted by yakov116 about 5 years ago

Maybe it just needs this?

set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

fetchDom does not take another parameter

posted by yakov116 about 5 years ago

It should just be part of it: if url.origin !== location.origin, add no-cors

posted by fregante about 5 years ago

It should just be part of it: if url.origin !== location.origin, add no-cors

Of where? Fetchdom?

posted by yakov116 about 5 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests