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

[Bug]: Unable to access docs #19

Closed
1 task done
lopezjuanma96 opened this issue Dec 15, 2022 · 1 comment
Closed
1 task done

[Bug]: Unable to access docs #19

lopezjuanma96 opened this issue Dec 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lopezjuanma96
Copy link
Contributor

Contact Details

No response

What happened?

The url for docs is opening a Google Authentication page and after logging in returns a 403 Forbidden

Version

6.7.x (Production)

Where are you seeing the problem on?

Chrome (WebApp)

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lopezjuanma96 lopezjuanma96 added the bug Something isn't working label Dec 15, 2022
@lopezjuanma96
Copy link
Contributor Author

For some reason if the URL does not add a '/' after docs it redirects to BaseUrl/docs, meaning:

https://us-central1-ottaaproject-flutter.cloudfunctions.net/realiser/docs

redirects to

https://us-central1-ottaaproject-flutter.cloudfunctions.net/docs

which leads to Firebase thinking we want to access some specific Cloud Functions URL since there's no Cloud Function on our project called 'docs', it asks for authentication but since there's nothing at 'docs' or if there is we don't have access, it returns 403. For some reason, this is solved adding a forward slash at the end of the URL:

https://us-central1-ottaaproject-flutter.cloudfunctions.net/realiser/docs/

Still did some correcting on the files, will do the same on other docs on the OTTAA set

lopezjuanma96 added a commit that referenced this issue Dec 15, 2022
added npm cors package
changed location of swagger config ro differ from docs url
improve access to swagger css
added localhost as one of the urls for local testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants