Skip to main content

Questions tagged [cors]

Use this tag when you see a message in the browser devtools console about CORS (Cross-Origin Resource Sharing) — e.g., your browser logged an error about Access-Control-Allow-Origin, and you want to know how to eliminate the error. Also for other questions on the CORS protocol (defined in the Fetch Standard as a way to use response headers to tell browsers to relax the same-origin policy and allow cross-origin XHR/Fetch/Ajax requests).

cors
0 votes
1 answer
7 views

How to resolve a Cors error when trying to get an authentication token using authorisation code grant in Next.js

I have an app where im trying to send a generated pdf to get a signature. Pretty straightforward. I got the authentication working in postman, but when I try it in code, I get this error: Access to ...
Duncan Findlay's user avatar
0 votes
0 answers
6 views

Problem with SmartBrain App - Failed to load resource: the server responded with a status of 404 (Not Found)

I'm trying to solve an issue I've been having with my SmartBrain app. I completed the ZTM Web Developer course and completed the app but then had problems using it later on. I keep getting a "...
Brandon Fyall's user avatar
0 votes
0 answers
15 views

NestJS CORS Error It's working well all of a sudden, but an error suddenly occurs

import { NestFactory, Reflector } from "@nestjs/core"; import { Logger, ValidationPipe } from "@nestjs/common"; import { AppModule } from "./app.module"; import { ...
developer-ppang's user avatar
0 votes
1 answer
16 views

Springboot Cors configuration works for Get requests but not to Post requests

I am in the following situation, I configured cors. I hosted my app using tomcat10 and the frontend is React. With the development server of Springboot, locally everythin works fine. But when hosted ...
Diego Alves's user avatar
  • 2,587
-1 votes
0 answers
32 views

Authorization header filtered out by cors

I'm using Spring Security 6.3.1 and it seems cors is filtering out my authorization header. I made sure that the request from my webapp contains the header but when i try to get it in my ...
HalcyonsGlory's user avatar
0 votes
0 answers
15 views

How to stop google analytics from setting _ga cross-site cookie when using resources from site A on Site B

I have a website (A) example.com on which I've placed google analytics tag. I have a second website (B) property.com on which I am loading resources from subdomain.example.com. When I visit site A (...
nunsy grey's user avatar
0 votes
0 answers
12 views

CORS issue when call Supabase edge function

I have integrated a PayPal button on my website to handle subscription payments. When the payment is approved, I need to send the subscription details to a Supabase edge function to update my database....
Imran's user avatar
  • 1
0 votes
0 answers
18 views

Unity WebGL Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed

I have a Unity webGL training app. The app can run on any PC. It runs a number of php scripts on the server to logon and update test scores etc in a database with mysqli. It checks whether a user ...
Dradb's user avatar
  • 1
0 votes
0 answers
17 views

How to change Access-Control-Allow-Origin header in wamp64?

I'm creating an Angular 17 application with the angular cli. Within the Angular application (served at 'http://localhost:4200') I'm trying to access an mp3 file which resides on the Wamp64 server ...
Sarah's user avatar
  • 1,971
0 votes
0 answers
23 views

Cloudfront omits CORS header in preflight request only when Authorization header is included

We have a Cloudfront distribution in front of a HTTP API Gateway. Cloudfront: Caching disabled AllViewerExceptHostHeader Response Header policy, custom Adds Access-Control-Allow-Origin: <list>, ...
omairvaiyani's user avatar
-1 votes
0 answers
20 views

How do I solve CORS issues with the Zoho Expense Report API?

In my project where I use Angular 16, I want to use the Zoho Expense APIs, specifically the expense report API. Since I am using Angular, I created a client-based application and obtained my Client ID,...
Fatih Ozan Arslan's user avatar
-2 votes
1 answer
27 views

Capacitor 6.1.x on both Android and iOS http connection always return CORS error

I am encountering an issue with Capacitor 6.1.0 on both Android and iOS platforms: When using Android Studio and Xcode, I receive the following error message: "Access to fetch at 'https://...
sleepcattw's user avatar
0 votes
0 answers
27 views

Rails & Ahoy: No route matches [OPTIONS] "/ahoy/visits"

We have a Rails 7 app that uses Ahoy and runs on Heroku. Apparently, we occasionally have users that use the website via Google Translate. Recently, this yields this error: No route matches [OPTIONS] &...
gibihmruby's user avatar
-2 votes
0 answers
40 views

API-Request fails with script but works in Postman

I get the following error code with my script: https://XXX.XXX.XX.XXX:8443/backend/rs/shipments/' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access ...
LEon's user avatar
  • 1
-1 votes
0 answers
21 views

Can CORS be setup to allow for different scheme and hostname?

I am trying to make an API call like: 'https://example.com/fake' from my origin which is 'http://127.0.x.x:4200'. My origin is currently hosted on node http-server. I currently see the error: Access ...
newcoder00's user avatar

15 30 50 per page
1
2 3 4 5
975