Dashticz - Module - Sonarr

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

rick82

Re: Dashticz - Module - Sonarr

Post by rick82 »

Code: Select all

Failed to load http://192.168.1.4:8989//api/calendar?apikey=thecorrectapikeyisreallyhere&start=2018-03-11&end=2018-04-12: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.5:8080' is therefore not allowed access.
Weird. When opening the given URL it works, i'm getting a long XML-code with all of the data.
So I can't get the 'not allowed access' error because it does work on my laptop.
Tried it also from console from 1.5 address with wget: it delivers the right amount of data, same as in the browser.

(Thanks for helping me out btw)
User avatar
Luxtux
Posts: 31
Joined: Monday 14 August 2017 15:16
Target OS: Linux
Domoticz version: 2021.1 β
Location: Luxembourg
Contact:

Re: Dashticz - Module - Sonarr

Post by Luxtux »

I think the url you typed in your CONFIG.js file has a trailing slash. try this:

Code: Select all

vconfig['sonarr_url'] = 'http://192.168.1.4:8989';
I've created a pull request so that sonarr.js removes the trailing slash if needed
rick82

Re: Dashticz - Module - Sonarr

Post by rick82 »

Sorry for my late response. That worked. Could have figured out myself: the extra / in the URL.
Thanks again.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 0 guests