Skip to content

No 'Access-Control-Allow-Origin'  #3

@webds

Description

@webds

https://github.com/leafsphp/cors/blob/10934a7504879ecf9b6f7687926c22a3b5c02ce9/src/Cors.php#LL71C4-L71C4

There is an error here.
If we want to set a custom Allow-Origin, we won't be able to do it.
For example, if I want to set the value "*", it will still not be accepted. The AJAX request will throw an error:
...has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions