Error 403 when I try to authorize application

Short description of the issue

  • Error 403

Detailed description with additional context about the workflow

  • When I try to authorize trakt application for mediaportal (installed on windows OS) I get the following message taken from the log:

  • Protocol Error, Code = ‘403’, Description = ‘Forbidden’, Url = ‘https://api.trakt.tv/oauth/device/code’, Headers = ‘Transfer-Encoding: chunked, Connection: keep-alive, CF-Ray: 9f99b6f0f86cf940-MXP, CF-Cache-Status: DYNAMIC, Access-Control-Allow-Origin: *, Vary: Accept-Encoding, Origin, access-control-expose-headers: X-Pagination-Page,X-Pagination-Page-Count,X-Pagination-Limit,X-Pagination-Item-Count,X-Trending-User-Count,X-Start-Date,X-End-Date,X-Sort-By,X-Sort-How,X-Private-User,X-Ratelimit,Retry-After,X-Upgrade-URL,X-Applied-Sort-By,X-Applied-Sort-How,Cache-Control,Pragma,Expires, referrer-policy: strict-origin-when-cross-origin, x-content-type-options: nosniff, x-download-options: noopen, x-frame-options: SAMEORIGIN, x-permitted-cross-domain-policies: none, x-request-id: 5f0a7ff7-3cd7-404e-bdb1-04daa04c6283, x-runtime: 0.005100, x-xss-protection: 0, Cache-Control: max-age=0, private, must-revalidate, no_store=true, no_cache=true, Content-Type: text/html, Date: Sun, 10 May 2026 14:43:09 GMT, Set-Cookie: _traktsession=FunlZPkPwQLsMY7heAKVZ8wpTrkWMGuvACFAv%2BhLlMSlozbbXQXVpvRN7MQzLbltMS8jelH4%2BpbAwbrZAtBkeGFX91fe8Vhb0HEkVz0wrWq0I1sm0SPL2BZR%2Bl8J66WkIEWGTgeReEX2XfOnYO5LVbxS5Kq7CRxC%2BDbCQIV7yLmU06OlGJa4jCyuRI5HzYd11uhWnUHRffLqIEAwKdi3YYF8EfiYyK0lqA%3D%3D–%2BJYuNDP4oJjuUyBy–f2zmY%2Fem7lbYalAwrMdSLg%3D%3D; path=/; HttpOnly; SameSite=Lax, Server: cloudflare’

Screenshots and other visual aids

:label: Tag your post with new and/or classic, along with the platform (eg: iOS, android, web) to help us assist you faster.

A 403 means the trakt-api-key is incorrect. Please confirm you’re using the correct OAuth values.

I updated the windows application for MediaPortal and it solved the issue.