Jump to content


Photo

Error Accessing App

API ios

Best Answer Luke , 08 August 2019 - 11:37 AM

The answer will most likely be in your nginx configuration.

I would check out @pir8radio's nginx configuration and compare it to yours. Please let us know if this helps. Thanks. Go to the full post


  • Please log in to reply
3 replies to this topic

#1 easez88 OFFLINE  

easez88

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:40 PM

Posted 08 August 2019 - 08:19 AM

Hello,

 

I'm putting this in general because I don't know where it belongs. 

 

I cannot access emby from the IOS app remotely. Other apps, such as apple and android TV connect with no problem. I can connect through web browsers with no problem as well. So even though I am using nginx. I'm pretty sure that I'm missing something in my configuration, but I am not sure what it is. 

 

I also cannot access the app when I go to https://app.emby.media and enter my external domain. in the console I get the error "Access-Control-Allow-Origin cannot contain more than one origin" I also see this error if I click on the API button in the dashboard. 

 

Does anyone have any idea how to correct this?



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139791 posts
  • Local time: 06:40 PM

Posted 08 August 2019 - 11:37 AM   Best Answer

The answer will most likely be in your nginx configuration.

I would check out @pir8radio's nginx configuration and compare it to yours. Please let us know if this helps. Thanks.
  • easez88 likes this

#3 easez88 OFFLINE  

easez88

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:40 PM

Posted 08 August 2019 - 05:27 PM

That's definitely it. I swapped out my nginx for his and it works perfectly. Now to figure out why. 

 

Edit:

Turns out I was missing these headers

add_header 'Referrer-Policy' 'origin-when-cross-origin';

add_header Strict-Transport-Security "max-age=15552000; preload" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;

Edited by easez88, 08 August 2019 - 05:36 PM.


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139791 posts
  • Local time: 06:40 PM

Posted 08 August 2019 - 05:56 PM

Thanks for the feedback !







Also tagged with one or more of these keywords: API, ios

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users