Documentation

Errors

Table of Contents

SDK/Middleware/Access/Cors.php 1

Cors.php

Type Line Description
ERROR 0 Tag "param" with body "@param array{origin?: array<string>, methods?: array<string>, headers?: array<string>, credentials?: bool, expose?: array<string>} $options CORS configuration is applied as follows: origin: Configures the `Access-Control-Allow-Origin` header. Array with the allowed origins. `null` value dynamically generates header based on the Origin of the request. If wildcard value is present in the array, `*` will always be returned as the allowed origin. Default value: null methods: Configures the `Access-Control-Allow-Methods` header. Array with the allowed HTTP verbs. Default value: [GET, HEAD, PUT, PATCH, POST, DELETE] headers: Configures the `Access-Control-Allow-Headers` header. Array with the allowed headers. Default value: [X-Forgery-Protection-Token, Authorization] credentials: Configures the presence of the `Access-Control-Allow-Credentials` header. Default value: false expose: Configures the `Access-Control-Expose-Headers` header. Array with the headers that should be exposed to the browser client. Default value: []" has error "\Plesk\SDK\Middleware\Access\array{origin" is not a valid Fqsen.

Search results