question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom headers are not applied to the `ConstraintViolationList`

See original GitHub issue

Version: 0.6.2

I pass JWT token to a header with function fetchHydra (as here said) and it works correctly for requests to API. But for the request ConstraintViolationList this header is not passed.

Снимок экрана 2019-07-17 в 17 05 48

I found the place where this request is being made but I couldn’t understand how it gets headers from fetchHydra.

Снимок экрана 2019-07-17 в 16 53 50

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pyrorulescommented, Nov 8, 2019

Any news on this one?

1reaction
mleczakmcommented, Nov 29, 2019

@Dogson

#config/packages/security.yaml
    access_control:
        ...
        # allow access to constraint violations list due to bug https://github.com/api-platform/admin/issues/191
        - { path: ^/api/contexts/, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom headers not applied · Issue #1317 - GitHub
Manually set custom headers in aws console: security related headers (e.g., X-Frame-Options) are set, but cache-control is not set. cache- ...
Read more >
Custom headers not showing with $_SERVER - Stack Overflow
Im trying to set a custom header like the code below: $. ajax({ type:"POST", beforeSend: function (request) { request. setRequestHeader("X_PJAX ...
Read more >
Hibernate Validator 8.0.0.Final - Jakarta Bean Validation ...
When using property level constraints property access strategy is used to access the value to be validated, i.e. the validation engine accesses ...
Read more >
Custom headers - AWS Amplify Hosting
Custom HTTP headers enable you to specify headers for every HTTP response. Response headers can be used for debugging, security, and informational purposes....
Read more >
Create custom headers in backend services | Load Balancing
The following limitations apply to custom headers: Custom headers are not supported for regional external HTTP(S) load balancers. You can specify a maximum...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found