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

Error 405 #357

Open
glewe opened this issue Oct 25, 2024 · 2 comments
Open

Error 405 #357

glewe opened this issue Oct 25, 2024 · 2 comments

Comments

@glewe
Copy link

glewe commented Oct 25, 2024

After initial installation and pointing my browser to the folder I get:

{
    "statusCode": 405,
    "error": {
        "type": "NOT_ALLOWED",
        "description": "Method not allowed. Must be one of: OPTIONS"
    }
}
@rafaeldevbackend
Copy link

The same with me.

@rafaeldevbackend
Copy link

i solved this problem, by adding on /public/index.php after create the app:

  • $app->setBasePath('/slim-project');

Where "/slim-project" is the root folder of my slim project

If you run this command php -S localhost:8000 -t /public you dont need to add this config, If you access the project on browser using apache localhost:8080/slim-project, so you will need this config.

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

2 participants