Skip to content

Access-Control-Allow-Origin #2

@ddsky

Description

@ddsky

Hello,

I wonder where I have to deploy the UI in order to access the API. apparently I get an Access-Control-Allow-Origin because the ports are not the same but I would rather want to host the UI over the apache and run the api on another tomcat/jetty port. Is that possible?

Javascript:
XMLHttpRequest cannot load http://localhost:8081/slc/pet/resources.json. Origin http://localhost is not allowed by Access-Control-Allow-Origin.

Also, is there any more documentation available? I can't quite figure out how the UI gets its information from the api, for example, where does this lead to:

swagger.api.basepath
http://localhost:8002/api

I mean, the UI asks for a resources.json file, but in the sample application I cannot find where path "/api" is defined and where a resources.json is returned.

Thanks for any help.
david

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