Search found 9 matches

Go to advanced search

by Subtitle_man
Tue Jan 02, 2024 2:57 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

Yes!! Thanks it fixed the issue.

Such a small mistake. Feeling stupid.
by Subtitle_man
Tue Jan 02, 2024 2:31 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

I hosted it on github. Here's the link:

https://mobasshirajaz.github.io/Subtle/

Just go to the website, search any movie,click any of the cards that appear. Then you should see the error. As i have only implemented the mobile view it will be better to change the view in dev tools to mobile.
by Subtitle_man
Mon Jan 01, 2024 6:54 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

The requests work in Postman(thoough inconsistently there too) just not in browser.

Also it seems there is a lot of difference in the timezone as its night here and I will probably be going to sleep. So I won't be able to reply for some time.
by Subtitle_man
Mon Jan 01, 2024 6:50 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

by Subtitle_man
Mon Jan 01, 2024 2:06 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

Oh sorry you asked for html files so you could try. Here are the files: index.html <!DOCTYPE html> <html lang="en"> <head> <title>Subtle</title> <meta name="Author" content="Mobasshir Ajaz"> <meta charset="UTF-8"> <script src="xxxx" crossorigin="...
by Subtitle_man
Mon Jan 01, 2024 8:06 am
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

It still isnt working. Here's my script: Javascript document.addEventListener("DOMContentLoaded", () => { console.log("DOM Content loaded."); if (document.querySelector(".index")) { let base_urls = ""; let image_size = ""; config(); console.log("...
by Subtitle_man
Sun Dec 31, 2023 4:18 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

Here's the errors I am getting in order: 1st error Access to fetch at 'https://api.opensubtitles.com/api/v1/subtitles?tmdb_id=299534' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque respon...
by Subtitle_man
Sun Dec 31, 2023 4:13 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Re: Getting CORS error

Still getting the error. :(
by Subtitle_man
Sun Dec 31, 2023 4:04 pm
Forum: Developing
Topic: Getting CORS error
Replies: 15
Views: 22138

Getting CORS error

This is my first project and I am sadly getting a dreaded CORS error. Please can someone check what I am doing wrong? const options={ method:'GET', Headers:{"Api-Key":api_key_sub, "User-Agent":"Subtle/1.0", "Accept":"application/json"} }; fetch(url_s...

Go to advanced search