Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Astraoke - CORS problem on the Angular app in local environment

When we try to run the Astrakode angular app we get a cors error on the Browser console.

Votes Newest

Answers


To fix this problem follow the next steps:

  1. be sure to find in astrakode-repository-frontend\projects\AstrakodeBCPortal\src\main.ts file this line fo code commented

    // if (
    // environment.SENTRY_DSN &&
    // environment.TRACING_ORIGIN &&
    // environment.TRACES_SAMPLE_RATE
    // ) {
    // Sentry.init({
    // dsn: environment.SENTRY_DSN,
    // environment: environment.production ? "prod" : "dev",
    // autoSessionTracking: true,
    // integrations: [
    // new Integrations.BrowserTracing({
    // tracingOrigins: environment.TRACING_ORIGIN,
    // routingInstrumentation: Sentry.routingInstrumentation,
    // }),
    // ],

// // We recommend adjusting this value in production, or using tracesSampler
// // for finer control
// tracesSampleRate: environment.TRACES_SAMPLE_RATE,
// });
// }

  1. then be sure to have in the environment.ts file API_URL with 'api' as value
 API_URL: "api",
10 Views
1 Answer
one year ago
one year ago
Tags