Home / Function/ setAllowCredentials() — netty Function Reference

setAllowCredentials() — netty Function Reference

Architecture documentation for the setAllowCredentials() function in CorsHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d0b437b7_a674_7261_9478_519e18bcedff["setAllowCredentials()"]
  48d2af19_d0e9_a2f5_8280_607eb2335be4["CorsHandler"]
  d0b437b7_a674_7261_9478_519e18bcedff -->|defined in| 48d2af19_d0e9_a2f5_8280_607eb2335be4
  a3528954_dd41_114c_963f_7d9056bea918["handlePreflight()"]
  a3528954_dd41_114c_963f_7d9056bea918 -->|calls| d0b437b7_a674_7261_9478_519e18bcedff
  fdaa1945_c0d7_1681_e943_87b13dd954f5["write()"]
  fdaa1945_c0d7_1681_e943_87b13dd954f5 -->|calls| d0b437b7_a674_7261_9478_519e18bcedff
  style d0b437b7_a674_7261_9478_519e18bcedff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java lines 211–216

    private void setAllowCredentials(final HttpResponse response) {
        if (config.isCredentialsAllowed()
                && !response.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN).equals(ANY_ORIGIN)) {
            response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_CREDENTIALS, "true");
        }
    }

Subdomains

Frequently Asked Questions

What does setAllowCredentials() do?
setAllowCredentials() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java.
Where is setAllowCredentials() defined?
setAllowCredentials() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java at line 211.
What calls setAllowCredentials()?
setAllowCredentials() is called by 2 function(s): handlePreflight, write.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free