Skip to content

Route_prefix breaks the cors check #550

@fizyk

Description

@fizyk

I'm having an issue with route_prefix and cors matching a service through url.

We're running the application in several setups.

  • There's a frontend UI application
  • There's also pyramid application using cornice, we're trying to introduce an api prefix to all routes.

We're running it either behind a single nginx that serves both: UI on the root path and pyramid app behind am api prefix or in more like dev environment on different ports. While the single host works great, the separate ports deployment causes an issue in that endpoints are not passing CORS check correctly from the UI. If I remove the route_prefix, everything works correctly and I'm not sure what's happening here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions