forked from ZoneMinder/zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45056c3
commit 4999321
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This configuration is only needed for compatibility with zmninja on iOS | ||
|
||
# If not using VirtualHosts, copy or symlink this file into the Apache config folder | ||
# If using VirtualHosts, then this config must be placed inside the appropriate | ||
# <VirtualHost> directive. | ||
|
||
#zmNinja header permissions. Tweak to your needs | ||
Header always set Access-Control-Allow-Credentials true | ||
#zmNinja's WKWebView will set the origin header as localhost:8080 | ||
Header always set Access-Control-Allow-Origin "http://localhost:8080" | ||
Header always set Access-Control-Request-Methods "Authorization" | ||
Header always set Access-Control-Methods "OPTIONS,GET,POST,DELETE,PUT" | ||
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Authorization, Origin, Accept, client-security-token" | ||
Header always set Access-Control-Expose-Headers "Content-Security-Policy, Location" | ||
Header always set Access-Control-Max-Age "1000" | ||
RewriteCond %{REQUEST_METHOD} OPTIONS | ||
RewriteRule ^(.*)$ $1 [R=200,L] |