Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Rev 63 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 43
Línea 5... Línea 5...
5
namespace LeadersLinked\Library;
5
namespace LeadersLinked\Library;
Línea 6... Línea 6...
6
 
6
 
7
abstract class Functions
7
abstract class Functions
Línea -... Línea 8...
-
 
8
{
-
 
9
    
-
 
10
    /**
-
 
11
     * 
-
 
12
     * @param \Laminas\Http\Response $response
-
 
13
     */
-
 
14
    public static function addCrossSiteToResponse($response)
-
 
15
    {
-
 
16
        $headers = $response->getHeaders();
-
 
17
        $headers->addHeaderLine('Access-Control-Allow-Origin', '*');
-
 
18
        $headers->addHeaderLine('Access-Control-Allow-Headers', '*');
-
 
19
        $headers->addHeaderLine('Access-Control-Allow-Method', 'PUT, PATCH, GET, POST, DELETE, OPTIONS');
8
{
20
    }
9
    
21
    
10
    public static function utf8_decode($value)
22
    public static function utf8_decode($value)
11
    {
23
    {