You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Describe the bug
I'm connecting a web UI with Zone Minder through API calls and I'm trying to use the DELETE Monitor API. Since I'm using fetch() from the browser, I had to enable CORS on my apache server by adding this to a new config file
Header always set Access-Control-Allow-Credentials true
#Allow requests from Thingsboard
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Request-Methods "*"
Header always set Access-Control-Request-Headers "*"
Header always set Access-Control-Allow-Methods: "*"
Header always set Access-Control-Allow-Headers "*"
Header always set Access-Control-Expose-Headers "*"
Header always set Access-Control-Max-Age "1000"
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
However, the preflight OPTIONS request to http://<myserver>/zm/api/monitors/<number>.json returns "404 Not Found" and I'm not sure why?
To Reproduce
Steps to reproduce the behavior:
Ensure CORS is enabled for your apache server
Create a button that makes an delete api call onclick
Look at the browser console log
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe Your Environment
Server
Machine + Browser
Describe the bug
I'm connecting a web UI with Zone Minder through API calls and I'm trying to use the DELETE Monitor API. Since I'm using
fetch()
from the browser, I had to enable CORS on my apache server by adding this to a new config fileHowever, the preflight OPTIONS request to
http://<myserver>/zm/api/monitors/<number>.json
returns "404 Not Found" and I'm not sure why?To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: