Reeti Garg Posted May 15, 2020 Share Posted May 15, 2020 Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted May 18, 2020 Share Posted May 18, 2020 Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Reeti Garg Posted May 18, 2020 Author Share Posted May 18, 2020 Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted May 20, 2020 Share Posted May 20, 2020 Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Reeti Garg Posted May 20, 2020 Author Share Posted May 20, 2020 Hi, For some reason,this seems to work fine with postman (which earlier was not) but I still get CORS error when I make a request from my angular app :( Please help. On Wednesday, May 20, 2020 at 7:28:57 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted May 20, 2020 Share Posted May 20, 2020 Hi Reeti,Have you modified CORS filter settings? By default, it is open for everyone so you shouldn't get such error. Best,AsimOn Wednesday, May 20, 2020 at 7:46:22 PM UTC+3, Reeti Garg wrote:Hi, For some reason,this seems to work fine with postman (which earlier was not) but I still get CORS error when I make a request from my angular app :( Please help. On Wednesday, May 20, 2020 at 7:28:57 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Reeti Garg Posted May 21, 2020 Author Share Posted May 21, 2020 Hi, This is what my CORS Filter is: <filter> <filter-name>CorsFilter</filter-name> <filter-class>io.antmedia.filter.CorsHeaderFilter</filter-class> <init-param> <param-name>cors.allowed.origins</param-name> <param-value>*</param-value> </init-param> <init-param> <param-name>cors.allowed.methods</param-name> <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> </init-param> </filter> On Thursday, May 21, 2020 at 12:12:52 AM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Have you modified CORS filter settings? By default, it is open for everyone so you shouldn't get such error. Best,AsimOn Wednesday, May 20, 2020 at 7:46:22 PM UTC+3, Reeti Garg wrote:Hi, For some reason,this seems to work fine with postman (which earlier was not) but I still get CORS error when I make a request from my angular app :( Please help. On Wednesday, May 20, 2020 at 7:28:57 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted May 21, 2020 Share Posted May 21, 2020 Hi Reeti,Your filter allows every request so I think the problem is angular since I can't really think of any other setting that would lead to this behavior on the server-side. Best,AsimOn Thursday, May 21, 2020 at 10:29:50 AM UTC+3, Reeti Garg wrote:Hi, This is what my CORS Filter is: <filter> <filter-name>CorsFilter</filter-name> <filter-class>io.antmedia.filter.CorsHeaderFilter</filter-class> <init-param> <param-name>cors.allowed.origins</param-name> <param-value>*</param-value> </init-param> <init-param> <param-name>cors.allowed.methods</param-name> <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> </init-param> </filter> On Thursday, May 21, 2020 at 12:12:52 AM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Have you modified CORS filter settings? By default, it is open for everyone so you shouldn't get such error. Best,AsimOn Wednesday, May 20, 2020 at 7:46:22 PM UTC+3, Reeti Garg wrote:Hi, For some reason,this seems to work fine with postman (which earlier was not) but I still get CORS error when I make a request from my angular app :( Please help. On Wednesday, May 20, 2020 at 7:28:57 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
0 Pasula Naresh Reddy Posted May 23, 2020 Share Posted May 23, 2020 Hi, I have a similar problem but when i replace * with the single URL in cors.allowed.origins it works. else it doesn't work. even if we put multiple URLs its not working. Thanks On Thursday, May 21, 2020 at 7:37:47 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Your filter allows every request so I think the problem is angular since I can't really think of any other setting that would lead to this behavior on the server-side. Best,AsimOn Thursday, May 21, 2020 at 10:29:50 AM UTC+3, Reeti Garg wrote:Hi, This is what my CORS Filter is: <filter> <filter-name>CorsFilter</filter-name> <filter-class>io.antmedia.filter.CorsHeaderFilter</filter-class> <init-param> <param-name>cors.allowed.origins</param-name> <param-value>*</param-value> </init-param> <init-param> <param-name>cors.allowed.methods</param-name> <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> </init-param> </filter> On Thursday, May 21, 2020 at 12:12:52 AM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Have you modified CORS filter settings? By default, it is open for everyone so you shouldn't get such error. Best,AsimOn Wednesday, May 20, 2020 at 7:46:22 PM UTC+3, Reeti Garg wrote:Hi, For some reason,this seems to work fine with postman (which earlier was not) but I still get CORS error when I make a request from my angular app :( Please help. On Wednesday, May 20, 2020 at 7:28:57 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,Could you use the rest api like this?https://antmediademo.s2sclasses.com/WebRTCAppEE/rest/v2/broadcasts/countI've checked this link and it works, hope this solves your problem.Best,AsimOn Monday, May 18, 2020 at 5:09:11 PM UTC+3, Reeti Garg wrote:Hi, the apps are same. For instance, I have added 127.0.0.1,192.168.0.8 as IP Filter on the url https://antmediademo.s2sclasses.com/#/applications/WebRTCAppEE under the settings tab. I am making the request to https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/count from postman and it still returns '403 Forbidden' :( On Monday, May 18, 2020 at 4:50:02 PM UTC+5:30, mahmut asım Onat wrote:Hi Reeti,There are one IP filters for each created app. The default apps, LiveApp and WebRTCAppEE, have their own filters. Could it be possible that you've set only one of them and trying to access the other app?Best,AsimOn Friday, May 15, 2020 at 7:49:42 PM UTC+3, Reeti Garg wrote:Hi, Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0 For instance, https://antmediademo.s2sclasses.com/rest/request?_path=WebRTCAppEE/rest/v2/vods/count returns '403 Forbidden' Link to comment Share on other sites More sharing options...
Question
Reeti Garg
Not able to access Ant media's rest API, even though I added the IP filter as 0.0.0.0/0
Link to comment
Share on other sites
Top Posters For This Question
4
4
1
Popular Days
May 20
3
May 18
2
May 21
2
May 15
1
Top Posters For This Question
Mahmut As1m Onat 4 posts
Reeti Garg 4 posts
Pasula Naresh Reddy 1 post
Popular Days
May 20 2020
3 posts
May 18 2020
2 posts
May 21 2020
2 posts
May 15 2020
1 post
8 answers to this question
Recommended Posts