======== TEMPLATE BUG FORM ========
Wappler Version : 6.0.2
Operating System : Sonoma 14.1.2
Server Model: PHP
Database Type: MySQL
Hosting Type: Own
What do you think should happen?
CORS headers should be sent during preflight
What actually happens?
Access-Control-Allow-Origin header is not sent.
How to reproduce
The DMXConnect.php template is missing an * in the default config
This is what is created by Wappler
$CONFIG_CORS_ALLOWED_HEADERS = ’ ';
This is what should be created.
$CONFIG_CORS_ALLOWED_HEADERS = ‘*’;
Without the * in the default the origin function does not create the “Access-Control-Allow-Origin” header correctly so it does not get sent.
Placing a * in the default location fixes the problem however it is overwritten any time the dmxConnect.php is recreated by Wappler
This was a working project until the update to 6.0.