improve CORS support
This commit is contained in:
		
					parent
					
						
							
								24cf23d7c6
							
						
					
				
			
			
				commit
				
					
						b4051e926c
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								api.php
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								api.php
									
										
									
									
									
								
							|  | @ -514,7 +514,7 @@ class REST_CRUD_API { | |||
| 	protected function startOutput($callback) { | ||||
| 		if (isset($_SERVER['REQUEST_METHOD'])) { | ||||
| 			header('Access-Control-Allow-Origin: *'); | ||||
| 			header("Access-Control-Allow-Headers: Content-Type"); | ||||
| 			header('Access-Control-Allow-Headers: Content-Type'); | ||||
| 			if ($callback) { | ||||
| 				header('Content-Type: application/javascript'); | ||||
| 				echo $callback.'('; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maurits van der Schee
				Maurits van der Schee