Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login to console! #1336

Closed
sjauld opened this issue Jun 20, 2019 · 8 comments
Closed

Can't login to console! #1336

sjauld opened this issue Jun 20, 2019 · 8 comments

Comments

@sjauld
Copy link

sjauld commented Jun 20, 2019

Issue

Short description

Brief description of what happened

I have an Ant Media Server cluster with a MongoDB backend that was working nicely on v1.6.1. After upgrading to v1.7.2, I can't log in anymore (403 error).

Environment

  • Operating system and version: AMS Enterprise v1.7.2 AMI
  • Java version: AMS Enterprise v1.7.2 AMI
  • Ant Media Server version: AMS Enterprise v1.7.2 AMI
  • Browser name and version: AMS Enterprise v1.7.2 AMI

Expected behavior

Put as much detail here as possible
I can log in

Actual behavior

Put as much detail here as possible
I can't log in

Steps to reproduce

  1. Deploy a working cluster using AMS v1.6.1 with a MongoDB backend
  2. Set an admin password
  3. Upgrade the cluster to v1.7.2
  4. Try to log in

Logs

Place logs on pastebin or elsewhere and put links here

Join Google Group and be a part of Ant Media Server Community.

@mekya
Copy link
Contributor

mekya commented Jun 20, 2019 via email

@sjauld
Copy link
Author

sjauld commented Jun 20, 2019

Hi @mekya,

Yes, we haven't changed this, we're running all of the same userdata, just on the new AMI.

Cheers,
Stuart

@mekya
Copy link
Contributor

mekya commented Jun 20, 2019 via email

@sjauld
Copy link
Author

sjauld commented Jun 20, 2019

I'll sent them via email now!

@mekya
Copy link
Contributor

mekya commented Jun 21, 2019 via email

@sjauld
Copy link
Author

sjauld commented Jun 23, 2019 via email

@mekya
Copy link
Contributor

mekya commented Jun 24, 2019 via email

@mekya
Copy link
Contributor

mekya commented Jul 22, 2019

This issues for CORS related and it's fixed in 1.8.0

In order to make it work for https in 1.7.2, you should open the file /usr/local/antmedia/webapps/root/WEB-INF/web.xml
and replace the lines below

<filter>
        <filter-name>CorsFilter</filter-name>
        <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
        <init-param>
          <param-name>cors.allowed.origins</param-name>
          <param-value>http://localhost:4200</param-value>
        </init-param>
        <init-param>
          <param-name>cors.support.credentials</param-name>
          <param-value>true</param-value>
        </init-param>
    </filter>

with these ones

<filter>
        <filter-name>CorsFilter</filter-name>
        <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
        <init-param>
          <param-name>cors.allowed.origins</param-name>
          <param-value>*</param-value>
        </init-param>
    </filter>

restart the servers

@mekya mekya closed this as completed Jul 22, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants