return-youtube-dislike icon indicating copy to clipboard operation
return-youtube-dislike copied to clipboard

(Bug): cors problem

Open kotenok2000 opened this issue 2 years ago • 16 comments

Browser

Google Chrome

Browser Version

100.0.4896.127

Extension or Userscript?

Extension

Extension/Userscript Version

3.0.0.0

Video link where you see the problem

https://www.youtube.com/watch?v=uMVIL_aunqc

What happened?

Access to fetch at 'https://returnyoutubedislikeapi.com/votes?videoId=uMVIL_aunqc&likeCount=37970' from origin 'https://www.youtube.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.

How to reproduce/recreate?

"C:\Program Files\Google\Chrome\Application\chrome.exe" --task-manager-show-extra-renderers --disable-backgrounding-occluded-windows --no-sandbox --flag-switches-begin --enable-gpu-rasterization --enable-nacl --enable-quic --enable-zero-copy --enable-features=PrivacySandboxSettings3:disable-dialog-for-testing/true,InterestGroupStorage,AdInterestGroupAPI,Fledge,FencedFrames --disable-smooth-scrolling --unsafely-treat-insecure-origin-as-secure --enable-features=PrivacySandboxSettings3:disable-dialog-for-testing/true,InterestGroupStorage,AdInterestGroupAPI,Fledge,FencedFrames,CanvasOopRasterization,ChromeLabs --disable-features=BackForwardCache,SidePanel,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes --flag-switches-end

kotenok2000 avatar Apr 27 '22 10:04 kotenok2000

What do you see when you open https://returnyoutubedislikeapi.com/votes?videoId=uMVIL_aunqc&likeCount=37970 in browser?

My guess that it's roskompozor issue.

Anarios avatar Apr 27 '22 11:04 Anarios

{"id":"uMVIL_aunqc","dateCreated":"2022-04-09T19:59:44.286338Z","likes":37971,"dislikes":1588,"rating":4.839429712581208,"viewCount":2807116,"deleted":false}

kotenok2000 avatar Apr 27 '22 11:04 kotenok2000

Are you using extension or userscript?

Anarios avatar Apr 27 '22 11:04 Anarios

Extension I have already said it in issue description.

kotenok2000 avatar Apr 27 '22 11:04 kotenok2000

My bad, I managed to miss it.

I'm a bit confused - I don't get CORS error, neither do most other users. Do you have any specific settings which could affect it?

The extension woudn't work for everyone if it was server configuration issue.

Anarios avatar Apr 27 '22 11:04 Anarios

For some reason It gets stuck on cloudflare protection on microsoft edge.

Cloudflare Ray ID: 70275eaeba2bfa9c

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000

Try again please?

Anarios avatar Apr 27 '22 12:04 Anarios

Now it is ERR_CONNECTION_TIMED_OUT on https, but works with http

ср, 27 апр. 2022 г. в 15:04, Dmitrii Selivanov @.***>:

Try again please?

— Reply to this email directly, view it on GitHub https://github.com/Anarios/return-youtube-dislike/issues/573#issuecomment-1110918132, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDJ4FGC6EIIGNTLCZPQQVDVHEULJANCNFSM5UOXG7QA . You are receiving this because you authored the thread.Message ID: @.***>

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000

Are you on win7?

Anarios avatar Apr 27 '22 12:04 Anarios

No, I am not. I am on 11

ср, 27 апр. 2022 г. в 15:11, Dmitrii Selivanov @.***>:

Are you on win7?

— Reply to this email directly, view it on GitHub https://github.com/Anarios/return-youtube-dislike/issues/573#issuecomment-1110925016, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDJ4FGTMDRDJ4UQ55UQFVDVHEVH5ANCNFSM5UOXG7QA . You are receiving this because you authored the thread.Message ID: @.***>

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000

Try once more, please?

Anarios avatar Apr 27 '22 12:04 Anarios

It isn't working.

ср, 27 апр. 2022 г. в 15:17, Dmitrii Selivanov @.***>:

Try once more, please?

— Reply to this email directly, view it on GitHub https://github.com/Anarios/return-youtube-dislike/issues/573#issuecomment-1110930247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDJ4FAQETONYZ6WSG7NAHLVHEV6TANCNFSM5UOXG7QA . You are receiving this because you authored the thread.Message ID: @.***>

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000

I tried disabling everything security-related in CF, not sure what's the cause for this issue.

Anarios avatar Apr 27 '22 12:04 Anarios

It started working in chrome

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000

--unsafely-treat-insecure-origin-as-secure anything to do with this It's supposed to be used with specified domain names

cyrildtm avatar Apr 27 '22 12:04 cyrildtm

Currently there is no domains specified.

kotenok2000 avatar Apr 27 '22 12:04 kotenok2000