Skip to content
Snippets Groups Projects
Commit 2267437f authored by Carsten  Rose's avatar Carsten Rose
Browse files

WIP refs #10782 - add https domain to CORS setup

parent 6ad27d69
No related branches found
No related tags found
6 merge requests!456F10782_TinyMce_Image_Upload_2,!455F10782_TinyMce_Image_Upload_2,!454F10782 TinyMce Image Upload V2,!449Refs #10782 - TinyMce Image Upload final version. With feature from Refs #12452.,!448refs #10782 - tinyMce image upload final version,!407F10782 TinyMCE picture upload with user given base file path and unique filename
......@@ -2,7 +2,9 @@
/*******************************************************
* Only these origins will be allowed to upload images *
******************************************************/
$accepted_origins = array("http://localhost", "http://webwork16.math.uzh.ch", "http://localhost:8000", "http://192.168.1.1", "http://example.com");
$accepted_origins = array("http://localhost", "http://localhost:8000",
"http://webwork16.math.uzh.ch", "https://webwork16.math.uzh.ch",
"http://192.168.1.1", "https://192.168.1.1");
reset($_FILES);
$temp = current($_FILES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment