Category "cors"

Cors problem with nginx/django from react app on docker

I have a question about cors implementation in django. Having a problem with setting the correct cors values. My deployment is on docker. I have a deployed 3 co

How can I access web.config values from within a class attribute?

I have the following EnableCors attribute on a WebApi controller class: [EnableCors(origins:"http://localhost:57280", headers: "*", methods: "*")] public class

Allow multiple CORS domain in express js

How do I allow multiple domains for CORS in express in a simplified way. I have cors: { origin: "www.one.com"; } app.all('*', function(req,

Understanding CORS

I've been looking on the web regarding CORS, and I wanted to confirm if whatever I made of it is, what it actually is. Mentioned below is a totally fictional s

Redirect is not allowed for a preflight request

I have this problem where i get the response when trying to use a rest api: "Access to fetch at 'https://kollektivet.app:8082/api/login/' from origin 'https://k

Custom HTTP Header blocks Jersey CORS Filter

I am using a Jersey2 response filter to deal with CORS requests from the browser. At this point it pretty much looks like the one from Paul Samsotha in this que

Express cors get origin = 'null' with type string

Express CORS is failing for my nodejs application and I need your help fixing it. The reason is that the app is getting null with type string as origin, which i

NextJs CORS issue

I have a Next.js app hosted on Vercel at www.example.com, which needs to communicate with a backend .NET Core Web API hosted on a different server at api.exampl

Flask CORS work only for first request, what's the bug in my code?

background There is a JS app serving at 127.0.0.1:8080, which refers some API serving at 127.0.0.1:5000 by a Flask app. [See FlaskCode] When I open this js app

ElasticSearch Access-Control-Allow-Headers header is not present

I am making a POST request from a local https server to an ElasticSearch endpoint which has been configured as follows http.cors.enabled: true http.cors.allow-

Response to preflight request doesn't pass access control check

I'm getting this error using ngResource to call a REST API on Amazon Web Services: XMLHttpRequest cannot load http://server.apiurl.com:8000/s/login?login=faceb

Spring Cloud Gateway with Eureka discovery enable CORS policies

I've been searching on how to enable CORS when using Spring Cloud Gateway in addition with Eureka discovery. My application is up and running and everything wo

Angular4 CORS header contains multiple values

please could somebody help to resolve issue: backend spring application web.xml <filter> <filter-name>corsFilter</filter-name>

I get CORS error when I try to access metadata stored on IPFS

I am trying to fetch the metadata I stored on NFT.storage using axios, but each time I get this error: Access to XMLHttpRequest at 'ipfs://bafyreib6hf354pwtnwx

Frontend JavaScript request gets 302-redirected but ultimately fails

I'm trying to create an audio visualization for a podcast network, using the Web Audio API with createMediaElementSource() very similarly to the model explained

‘Access-Control-Allow-Origin’ missing when uploading to YouTube API

For several years we have successfully been uploading videos via the YouTube API using some custom JavaScript code. The code was based on some samples provided

How to check a domain has enable CORS or not

I tried to access this API click here for more info POST https://api.line.me/v2/oauth/accessToken but always get the error: XMLHttpRequest cannot load http

How to enable CORS in flask

I am trying to make a cross origin request using jquery but it keeps being reject with the message XMLHttpRequest cannot load http://... No 'Access-Control

Can/should HTML5 Web Workers use CORS for cross-origin?

I ran into an interesting problem while creating a hosted API that relies on web workers. I was hoping to get a little community feedback on it. My server is s

Access to Image from origin 'null' has been blocked by CORS policy

I have JavaScript application in OpenLayers 3, and my base layer is created from local tiles. I work only in my computer so I do not know why I have CORS error.