Questions tagged [allowed-origin]

4 questions
1
vote
1 answer

Allowed hosts for serverMiddleware

I have built a NUXT app, and I've added to it a serverMiddleware for handling some REST endpoints and connecting to my database. serverMiddleware: [ { path: "/api", handler: "~/api/index.js" }, ], So my question is: How to restrict accessing to…
0
votes
4 answers

How I can fix broken CORS In Spring Boot + Vue app?

In my problem I have Spring Boot Application (which is using Spotify API) on backend and Vue application on front. I use server on localhost:8080 and front on localhost:8081. I want to connect my frontend to my backend via axios and I try everything…
MrFisherman
  • 720
  • 1
  • 7
  • 27
0
votes
1 answer

Angular 7, and Spring Boot App - No 'Access-Control-Allow-Origin' header is present on the requested resource

I have added @CrossOrigin(origins = "*") annotation at the class level to my controller in the Spring Boot app, and I am still getting this error when I make an HTTP GET request from Angular to the Spring Boot app (listening on port 9000). Here is…
Junior RT
  • 11
  • 1
  • 3
0
votes
0 answers

What is Origin URL when making HttpRequests from Visual Studio Unit Tests?

I am using Visual Studio 2017 to run an integration test (TestMethod) to make read requests to a service. The issue is that the service has Access-Control-Allow-Origin security implemented, meaning that it only allows the requests if the sender's…