Skip to content

Make CORS Header optional #46

@gerritvanaaken

Description

@gerritvanaaken

In my somewhat complex web application I need to set the CORS headers (Access-Control-Allow-Origin, Access-Control-Allow-Headers, Access-Control-Allow-Credentials) in the .htaccess

On the old web server this was no problem. AppApi did set the headers again via PHP (Router.php), Apache ignored my old .htaccess settings and everything was fine.

The new web server, however, tries to combine the values, which leads to unpleasant results like:

Access-Control-Allow-Origin: https://scouter.de, https://scouter.de

This produces an CORS error, of course.

If you can make CORS-Heade an option that can be unchecked (instead of outcomment it in the source.), would be nice!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions