File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 4
4
</head>
5
5
<body>
6
6
<?php
7
+
8
+ // header("Access-Control-Allow-Origin: *");
9
+ //header("Access-Control-Allow-Headers: Content-Type");
10
+
11
+
12
+ header ("Access-Control-Allow-Origin: https://theopenvoicefactory.org " );
13
+
14
+ // Optionally allow credentials (cookies, authentication) to be shared
15
+ header ("Access-Control-Allow-Credentials: true " );
16
+
17
+ // Allow certain types of HTTP requests (e.g., GET, POST, etc.)
18
+ header ("Access-Control-Allow-Methods: POST, GET " );
19
+
20
+ // Optionally allow certain headers to be received from the requests
21
+ header ("Access-Control-Allow-Headers: Content-Type, Authorization " );
22
+
7
23
//Basic code from http://www.w3schools.com/php/php_file_upload.asp with thanks
8
24
//echo getcwd() . "\n"; //Used for debugging directory
9
25
$ target_dir = "uploads/ " ;
You can’t perform that action at this time.
0 commit comments