Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codeigniter 4.4.4 CORS not work #8

Open
abmcr opened this issue Jan 13, 2024 · 2 comments
Open

Codeigniter 4.4.4 CORS not work #8

abmcr opened this issue Jan 13, 2024 · 2 comments

Comments

@abmcr
Copy link

abmcr commented Jan 13, 2024

With the last CI i get always this error

Access to XMLHttpRequest at 'https://ci4api.test/API/v1/locations' from origin 'http://localhost:9001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@Valkhan
Copy link

Valkhan commented Feb 17, 2024

Same problem here, i seems that CI is not loaded and can't handle the cors, it must be set as a server rule.

@jccallo
Copy link

jccallo commented Mar 26, 2024

Use this gist for now CodeIgniter 4 CORS Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants