Search found 2 matches
- Fri Sep 03, 2021 1:44 am
- Forum: ZoneMinder 1.34.x
- Topic: Unable to use API due to cross origin block
- Replies: 3
- Views: 4685
Re: Unable to use API due to cross origin block
You are correct, you can instead add the response header in the server configuration. For a simple allow all rule, this would be easier than modifying the app controller as well. I feel rather embarrassed for not thinking about that myself... The only downside to this approach is that it is an all ...
- Thu Sep 02, 2021 4:40 am
- Forum: ZoneMinder 1.34.x
- Topic: Unable to use API due to cross origin block
- Replies: 3
- Views: 4685
Re: Unable to use API due to cross origin block
I couldn't find anyway official way to add the headers, but what you can do is edit the api application controller and add your own headers. On my system, the application controller can be found here: /usr/share/zoneminder/www/api/app/Controller/AppController.php Then add your headers to the bottom ...