TripleParity / docks-api

RESTful API Server for Docks
https://tripleparity.github.io/docks-api/stack-api-spec.html
GNU General Public License v3.0
0 stars 0 forks source link

Fixed CORS violation errors on backend #40

Closed devosray closed 6 years ago

devosray commented 6 years ago

For some reason, the CORS middleware was not correctly inserted for some routes. @CDuPlooy noticed this on the fronted when he tried to access http://localhost:8080/docker/networks:

image

This pull request moves the CORS middleware outside the docker/ endpoint to the global routes.

devosray commented 6 years ago

@CDuPlooy can you please confirm that the endpoint works on your machine now?