Skip to content

CORS issue when made a request from one host to another #44

@pinclau

Description

@pinclau

Feature Request

Q A
New Feature yes
RFC yes/no
BC Break yes/no

Summary

Requests are blocked between 2 hosts because of CORS

To fix this , in AlmaLinux9, add in /etc/httpd/sites-enabled/{your-host.conf} inside <VirtualHost> this line:
Header set Access-Control-Allow-Origin "*" - this will allow any origin and you can replace * with your host you you want a specific host, then restart the server

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions