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

CORS Error when using the "Default" server on any anime #274

Open
YoJames2019 opened this issue Jan 6, 2025 · 10 comments
Open

CORS Error when using the "Default" server on any anime #274

YoJames2019 opened this issue Jan 6, 2025 · 10 comments

Comments

@YoJames2019
Copy link

YoJames2019 commented Jan 6, 2025

image

yes, I have a cors proxy set up

if there is any info missing from this issue, please let me know in the replies and I'll do what I can (the last commit removed the issue template)

@YoJames2019 YoJames2019 changed the title CORS Error when using the "Default" server on an anime CORS Error when using the "Default" server on any anime Jan 6, 2025
@Brentph505
Copy link

Brentph505 commented Jan 8, 2025

edit the code on src/components/Watch/Video/Player.tsx and find this part of the code:

return (
<div style={{ animation: 'popIn 0.25s ease-in-out' }}>
<MediaPlayer
className='player'
title={${animeVideoTitle} - Episode ${episodeNumber}}
src={src}
autoplay={autoPlay}
crossorigin
playsinline
onLoadedMetadata={onLoadedMetadata}
onProviderChange={onProviderChange}
onTimeUpdate={onTimeUpdate}
ref={player}
aspectRatio='16/9'
load='eager'
posterLoad='eager'
streamType='on-demand'
storage='storage-key'
keyTarget='player'
onEnded={handlePlaybackEnded}

and add edit the src={src} to this:

src={https://goodproxy.goodproxy.workers.dev/fetch?url=${encodeURIComponent(src)}}

you can use your own CORS proxy.

@abuzain432432
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

@toshiro9117
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

how did u manage to run it

@abuzain432432
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

how did u manage to run it

I just configured the backend for this project, and a few tweaks were required on the frontend. It is now working fine. If you are facing any issues, please drop them here, and I will help you run it.

@toshiro9117
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

how did u manage to run it

I just configured the backend for this project, and a few tweaks were required on the frontend. It is now working fine. If you are facing any issues, please drop them here, and I will help you run it.

well I have a problem running it

Image

@YoJames2019
Copy link
Author

I ended up just making my own website from scratch

@abuzain432432
Copy link

@toshiro9117 you are getting the above error because you have to run the backend either locally or maybe on the AWS ec2.
https://miruru-iota.vercel.app/ you can see my current version of the same project on the attached link

@abuzain432432
Copy link

I ended up just making my own website from scratch

would u mind sharing the link with us?

@Anogh297
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

how did u manage to run it

I just configured the backend for this project, and a few tweaks were required on the frontend. It is now working fine. If you are facing any issues, please drop them here, and I will help you run it.

well I have a problem running it

Image

comment the VITE_PROXY_URL line in your .env file

@devxoshakya
Copy link

Hi everyone I am working on extending the feature of this project https://miruru-iota.vercel.app/ this is a link to the current version. Is anyone interested in continuing it? @YoJames2019 @Brentph505

i want to work on the project can you provide me the repo so i can fork and add stuff

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

6 participants