Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting cors policy error #641

Open
saimahendra282 opened this issue Nov 18, 2024 · 5 comments
Open

I am getting cors policy error #641

saimahendra282 opened this issue Nov 18, 2024 · 5 comments

Comments

@saimahendra282
Copy link

saimahendra282 commented Nov 18, 2024

Access to XMLHttpRequest at 'https://www115.anzeat.pro/streamhls/a3407edcf6647e3067c47f54a3eb87ad/ep.7.1731940264.m3u8' from origin 'https://.......' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://s3embtaku.pro' that is not equal to the supplied origin.
www115.anzeat.pro/streamhls/a3407edcf6647e3067c47f54a3eb87ad/ep.7.1731940264.m3u8:1

   Failed to load resource: net::ERR_FAILED 

haigakura-episode-7:1 Access to XMLHttpRequest at 'https://www115.anzeat.pro/streamhls/a3407edcf6647e3067c47f54a3eb87ad/ep.7.1731940264.m3u8' from origin 'https:.........' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://s3embtaku.pro' that is not equal to the supplied origin.
xhr-loader.ts:134

   GET https://www115.anzeat.pro/streamhls/a3407edcf6647e3067c47f54a3eb87ad/ep.7.1731940264.m3u8 net::ERR_FAILED 200 (OK)

e.loadInternal @ xhr-loader.ts:134
setTimeout
e.readystatechange @ xhr-loader.ts:220
can anyone help me with this

@NOOB-3301
Copy link

NOOB-3301 commented Nov 18, 2024

I am getting same. I tried it many ways. When I used postman with referer header it gives .ts segmented value and in the devtools it is showing set referer header denied.

I made a project a few days back back then it does not require this header.

Gogoanime probably blocked adding this header idk maybe 🥲
If any fix let me know

@notbeer
Copy link

notbeer commented Nov 19, 2024

The issue can be fixed with a proxy. Here's a proxy that works for gogoanime m3u8: https://github.com/JulzOhern/GOGOANIME-PROXY

@NOOB-3301
Copy link

The issue can be fixed with a proxy. Here's a proxy that works for gogoanime m3u8: https://github.com/JulzOhern/GOGOANIME-PROXY

How I can use this. Give me a general overview, like which url i have to send 'www.aznet...' and which end point.

In consumet utils folder there is m3u8 proxy that also give cors issue.

Help me out

@notbeer
Copy link

notbeer commented Nov 19, 2024

The issue can be fixed with a proxy. Here's a proxy that works for gogoanime m3u8: https://github.com/JulzOhern/GOGOANIME-PROXY

How I can use this. Give me a general overview, like which url i have to send 'www.aznet...' and which end point.

In consumet utils folder there is m3u8 proxy that also give cors issue.

Help me out

/hls-proxy?url=https://your-m3u8-link

Make sure to set BASE_URL in .env file either as http://localhost:port. Or in deployment set environment variable as your proxy domain

@NOOB-3301
Copy link

The issue can be fixed with a proxy. Here's a proxy that works for gogoanime m3u8: https://github.com/JulzOhern/GOGOANIME-PROXY

How I can use this. Give me a general overview, like which url i have to send 'www.aznet...' and which end point.
In consumet utils folder there is m3u8 proxy that also give cors issue.
Help me out

/hls-proxy?url=https://your-m3u8-link

Make sure to set BASE_URL in .env file either as http://localhost:port. Or in deployment set environment variable as your proxy domain

you have discord or some thing ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants