Search found 3 matches

by JO_MELNIK
Sat Jul 21, 2018 11:28 pm
Forum: Developers
Topic: Accessing APIv2 with Javascript and/or CORS
Replies: 1
Views: 725

Re: Accessing APIv2 with Javascript and/or CORS

in javascriptt you get 405 error (Cross-origin resource sharing (CORS)) because you use XMLHttpRequest with a remote domain. But XMLHttpRequest works with a file on your server, you just have to create a server-side scripting file (like php), on your server, which sends your requests to thetvdb.com ...
by JO_MELNIK
Sat Jul 21, 2018 11:03 pm
Forum: Developers
Topic: API V2 error 405
Replies: 3
Views: 1045

Re: API V2 error 405

Cross-origin resource sharing (CORS) errors can be solved easily. You cant use xmlhttprequest from your domain to a remote domain such like ( http://not_my_domain.com/....) ! You will always get 405 errors when you use xmlhttprequest in javascript because your script is not on thetvdb.com domain. I...