Skip to content
New issue

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

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

Already on GitHub? # to your account

403 Forbidden #84

Closed
jairhenrique opened this issue Jun 6, 2020 · 2 comments
Closed

403 Forbidden #84

jairhenrique opened this issue Jun 6, 2020 · 2 comments

Comments

@jairhenrique
Copy link
Contributor

Describe the bug
After update to 0.9.7 I receive 403 Forbidden on swagger-ui view.

On my rest_framework settings I have:

"DEFAULT_PERMISSION_CLASSES": [
        "rest_framework.permissions.IsAuthenticated",
 ]

And in SPECTACULAR_SETTINGS

"SERVE_PERMISSIONS": ['rest_framework.permissions.AllowAny']

Schema view works.

jairhenrique added a commit to jairhenrique/drf-spectacular that referenced this issue Jun 6, 2020
tfranzel added a commit that referenced this issue Jun 6, 2020
@tfranzel
Copy link
Owner

tfranzel commented Jun 6, 2020

thank you that was an oversight on my part. testing with mocked settings is tricky so this case was not tested.

i fixed it slighly different. can you confirm that it works?

@jairhenrique
Copy link
Contributor Author

@tfranzel that's works!

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

No branches or pull requests

2 participants