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 - Front - Missing Accept Headers #68

Open
my-opencode opened this issue Sep 11, 2024 · 0 comments
Open

Bug - Front - Missing Accept Headers #68

my-opencode opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@my-opencode
Copy link
Owner

Describe the bug
After a system reinstall and project 'make start', the back end denies front end requests with 415.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the project into a new directory
  2. run make start, enter password when prompted
  3. open the network inspector, go to 127.0.0.1:4200
  4. Notice the 415 status code response for the /products request

Expected behavior
The front end should send Accept:application/json headers.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser Firefox 130

Additional context
There is no explicit setter for headers.
Add headers to angular's product and category services HTTPClient calls.

@my-opencode my-opencode added the bug Something isn't working label Sep 11, 2024
@my-opencode my-opencode self-assigned this Sep 11, 2024
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

1 participant