Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 375 for Origins (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/cors_test.go

    		name           string
    		allowedOrigins []string
    		origins        []string
    		allowed        bool
    	}{
    		{
    			name:           "allowed origins list is empty",
    			allowedOrigins: []string{},
    			origins:        []string{"example.com"},
    			allowed:        false,
    		},
    		{
    			name:           "origin request header not set",
    			allowedOrigins: []string{"example.com"},
    			origins:        []string{""},
    			allowed:        false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 20 19:15:51 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/cors.md

    # CORS (Cross-Origin Resource Sharing)
    
    <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS" class="external-link" target="_blank">CORS or "Cross-Origin Resource Sharing"</a> refers to the situations when a frontend running in a browser has JavaScript code that communicates with a backend, and the backend is in a different "origin" than the frontend.
    
    ## Origin
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 20:28:37 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  3. docs_src/cors/tutorial001.py

    from fastapi import FastAPI
    from fastapi.middleware.cors import CORSMiddleware
    
    app = FastAPI()
    
    origins = [
        "http://localhost.tiangolo.com",
        "https://localhost.tiangolo.com",
        "http://localhost",
        "http://localhost:8080",
    ]
    
    app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
    )
    
    
    @app.get("/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 459 bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/OriginFixture.groovy

                )
            }
        }
    
        String originId(String path) {
            origin(path)?.buildInvocationId
        }
    
        OriginMetadata origin(String path) {
            def tasks = origins.keySet()
            assert path in tasks
            origins[path]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/cors.go

    //	 list all the origins in the Origin header field. For example, if the
    //	 HTTP request was initially issued by one origin but then later
    //	 redirected by another origin, the user agent MAY inform the server
    //	 that two origins were involved in causing the user agent to issue the
    //	 request
    //			origin-list = serialized-origin *( SP serialized-origin )
    func isOriginAllowed(originHeader string, allowedOriginPatternsREs []*regexp.Regexp) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 13:59:10 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  6. src/internal/coverage/pods/pods.go

    			pod.CounterDataFiles = append(pod.CounterDataFiles, e.file)
    			pod.Origins = append(pod.Origins, e.origin)
    			pod.ProcessIDs = append(pod.ProcessIDs, e.pid)
    		}
    		pods = append(pods, pod)
    	}
    	slices.SortFunc(pods, func(a, b Pod) int {
    		return strings.Compare(a.MetaFile, b.MetaFile)
    	})
    	return pods
    }
    
    func warning(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "warning: ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TaskOriginTracker.java

    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    
    class TaskOriginTracker implements BuildOperationTracker {
    
        private final Map<Long, InternalPluginIdentifier> origins = new ConcurrentHashMap<>();
        private final PluginApplicationTracker pluginApplicationTracker;
    
        TaskOriginTracker(PluginApplicationTracker pluginApplicationTracker) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. src/internal/coverage/pods/pods_test.go

    		return db + "/" + b
    	}
    
    	podToString := func(p pods.Pod) string {
    		rv := trim(p.MetaFile) + " [\n"
    		for k, df := range p.CounterDataFiles {
    			rv += trim(df)
    			if p.Origins != nil {
    				rv += fmt.Sprintf(" o:%d", p.Origins[k])
    			}
    			rv += "\n"
    		}
    		return rv + "]"
    	}
    
    	// Create a couple of directories.
    	o1 := mkdir("o1", 0777)
    	o2 := mkdir("o2", 0777)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 14:00:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/RuntimeFunctionResolver.kt

            receiverClass.memberFunctions.forEach { function ->
                // TODO: `convertBinding` is invoked here with the receiverClass passed as the receiver and non-resolved argument origins; this probably needs a different API shape
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 10:30:52 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. internal/config/api/help.go

    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         apiCorsAllowOrigin,
    			Description: `set comma separated list of origins allowed for CORS requests` + defaultHelpPostfix(apiCorsAllowOrigin),
    			Optional:    true,
    			Type:        "csv",
    		},
    		config.HelpKV{
    			Key:         apiRemoteTransportDeadline,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 15 01:07:19 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top