14,692
questions
0
votes
0
answers
9
views
405 Error or 401 Error (sometimes) on Stripe Endpoint with Next.js, Vercel, and PM2: Unable to Create Checkout Session
I'm integrating Stripe into my Next.js application deployed on Vercel. The goal is to create a checkout session through a POST request to the /api/stripe/create-checkout-session endpoint. However, I'm ...
-1
votes
0
answers
13
views
Image gallery website works properly on localhost but shows an error if i host it on vercel and run
I built an image gallery site using Appwrite. It works locally, but I get an error after deploying to Vercel. I've configured the environment variables and CORS settings, but the error persists.Any ...
0
votes
0
answers
19
views
access-control-allow-origin: undefined not blocking the GET response
My browser which has loaded https://www.cashrewards.com.au/shop, is making a request to the following domain, as you can see in the screenshot:
https://e-11283.adzerk.net
Why is this response not ...
0
votes
1
answer
35
views
Having trouble using a local php script as a mailer for my Angular app
I'm having two problems here actually.
I have the following in my service:
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: '...
0
votes
0
answers
14
views
Calling MVC endpoint with Ajax when WS-Fed cookie has expired
I have an ASP.NET MVC web application targeting .NET 8. We use WS-Federation for user authentication. For the purposes of this question, let's say that every endpoint is decorated with an ...
0
votes
0
answers
24
views
ASP.NET Core redirect from controller and blocked by CORS policy
In the ASP.NET Core MVC project, I make a redirect from the controller to an external source after performing certain calculations
return Redirect(confirmation_url);
But the redirection does not ...
-1
votes
0
answers
24
views
Spring Security 6.3.3 WebFlux CORS
Setup
Spring Boot 3.3
Spring Security 6.3.3
Angular 18
Both server and client run on different hosts.
Spring Boot application runs on http://api.example.com.
Angular application runs on http://...
0
votes
1
answer
43
views
CORS Error when trying to access API Gateway Endpoint
I am trying to host an WebSite on S3. The site will trigger a lambda function and do some stuff.
I've managed to host the site and access it. Created the Lambda function. Created the API Gateway API, ...
0
votes
2
answers
51
views
I'm having trouble configuring CORS
I'm working on a frontend application using React with Redux and a backend in NestJS with Firebase. I'm facing a CORS issue that I can't seem to resolve. I've configured CORS on the backend, but I'm ...
0
votes
0
answers
25
views
navigator.sendBeacon() different behaviors [closed]
I have two servers(machines) on which a Java application is hosted in each one of them.
In this Java app,a jsp is calling another jsp as below,
\\ below function is inside abc.jsp
function sessionMark(...
-1
votes
0
answers
34
views
CSP headers required for web worker creation from a different origin?
I'm using a npm package which internally create web workers. I need to send the base URL to the library config, and it uses that URL to fetch the worker files. In our case, it's a CDN path.
As it's a ...
0
votes
1
answer
31
views
CORS Error When Accessing Swagger API Deployed on AWS EC2
I have deployed a NestJS backend on an AWS EC2 instance. The Swagger UI is accessible, but when I try to hit the API using Swagger, I receive the following error:
ISSUE: Failed to fetch. Possible ...
1
vote
0
answers
40
views
XSRF TOKEN with Angular
I'm learning to use Angular 18 without standalone but I got some problems when I decided to use Laravel on the backend, and yeah it is a problem using CSRF token in the post, put, and delete requests.
...
-2
votes
1
answer
153
views
NGINX blocked the request from frontend through backend and frontend are in the same domain but differs in port [closed]
I built a web application with node.js backend and vue as frontend on the cloud, by using nginx both backend and frontend are served in 80 port (backend) and 8080 port(web frontend). On the backend's ...
0
votes
0
answers
34
views
No 'Access-Control-Allow-Origin' header is present on the requested resource Error while fetch works fine during login with the same cors options
I'm trying to send a post request to my server using fetch but it is constantly getting blocked by cors policy. However when I used fetch during user login, it was working fine. And this issue popped ...
0
votes
0
answers
21
views
I got the problem with CORS when upgrade from JAX-RS 2.x to 3.x
I upgrade my project to use JAX-RS 3.1 API is doing fine but i keep getting this when i try to use with my Web
blocked by CORS policy: Response to preflight request doesn't pass access control check: ...
0
votes
0
answers
18
views
Session ID Returns None After Setting Session Data in Django with React Frontend
I'm working on a Django backend with a React frontend and using sessions to manage user authentication. After successfully logging in a user, I'm setting session data (e.g., user_id, name, email, etc.)...
-2
votes
0
answers
13
views
Unable to make external Api call from backend controller of mern stack after deploying on render [closed]
basic controller with an api call imageHello guys please help me with this error, Im deploying mine mern stack for a first time,
I deployed mine front-end app on vercel and backend in render,
After ...
-2
votes
1
answer
34
views
React DevTools Warning and CORS Error in Spring Boot & React Application [duplicate]
I'm working on a project that uses Spring Boot for the backend and React for the frontend. I'm encountering a couple of issues that I'm unsure how to resolve:
React DevTools Warning: I'm getting the ...
1
vote
1
answer
408
views
Forbidden access error: following Directus SDK tutorial
I'm having trouble learning Directus SDK - loosely following: https://docs.directus.io/blog/building-a-personal-travel-journal-with-vue-js-and-directus.html#creating-a-journal-and-users-collection
...
0
votes
1
answer
56
views
has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present
I built web API project in asp .Net 8 core project and i published it in folder when i run the .exe project every thing work fine and runs on Now listening on: http://0.0.0.0:5000
info: Microsoft....
0
votes
0
answers
11
views
iOS blocks passing session data within an iframe
I have this project with a parent page on one domain that includes an iframe on another domain.
Within this iframe I want to pass session data. This means:
index.php is called within an iframe and ...
0
votes
0
answers
16
views
API URL works in browser address bar and Postman, but not in PHP Curl [duplicate]
I have an API link, suppose it's https://abcd.com/get?name=abcd&place=efgh...
When I use the link in Postman or even directly in browser address bar, it returns me JSON response just fine. But the ...
-1
votes
0
answers
31
views
Access to XMLHttpRequest at 'https://....' from origin 'http://localhost:4200' has been blocked by CORS policy
I'm trying to use an open API for a local project but I get the error:
Access to XMLHttpRequest at 'https://api.nbp.pl/api/exchangerates/tables' from origin 'http://localhost:4200' has been blocked ...
0
votes
1
answer
12
views
Why are my getting a preflight/Option request between server to server POST request
Please I'm making a POST request from my web Server(Node.js) to another web Server(Php). Can it be possible for my Node.js Server to make a preflight/OPTION request to the other PHP web server if the ...
0
votes
0
answers
8
views
Assets uploaded to S3 bucket can't be loaded in third-party app?
I'm using S3 to store images uploaded, and trying to integrate with LINE messaging API, in short, I have to send this object to the LINE API endpoint:
{
"type": "imagemap",
&...
-4
votes
1
answer
56
views
How to enable CORS on the Go server within the existing code?
I'm trying to enable CORS on our server so as our Swagger UI can function without CORS errors. I'm unable to figure out how to implement it with in our code?
Below is the code from main.go:
package ...
1
vote
1
answer
34
views
Angular CORS with Django
I'm trying to get a simple api with mock data from django.
I tried to get the API with Postman and it's fine.
So right now I'm having this situation.
settings.py
"""
Django settings for ...
0
votes
0
answers
27
views
CORS Error while sending GraphQL Post Request over Axios in AstroJS Project
I have an AstroJS application and a Prisma Client/Apollo Server application that are working together.
I've recently deployed both applications to EC2 Instances and I'm running into a CORS Preflight ...
0
votes
0
answers
46
views
CORS Error with Delete Functionality on Live Server: Works Locally but Not on Live Laravel Website
I’m working on a Laravel project where users can delete reviews through their dashboard. The delete functionality works perfectly in localhost, but after deploying the application to my live server (...
0
votes
0
answers
35
views
No 'Access-Control-Allow-Origin' header is present on the requested resource, CORS error in MERN app
I was working on a project to create a simple payments app and during deployment when I tried to log in to the app I got the below error:
signin:1 Access to XMLHttpRequest at 'https://mere-paise-...
-1
votes
0
answers
72
views
Cross-Origin-Opener-Policy would block the window.closed call
My code is using React, Redux, MongoDb, and Firebase for Authentication.
My Code is working fine but getting this CORS error.
Error is : popup.ts:302 Cross-Origin-Opener-Policy policy would block
the ...
0
votes
0
answers
23
views
Issue with 'Access-Control-Allow-Origin' in my Node.js application
I've been stuck on this problem for a few days now and I can't seem to find a solution. Thank you in advance for your help.
I've configured CORS permissions in my index file as follows:
const ...
-2
votes
1
answer
89
views
How to allow Cross-Origin using vite and express
I have two servers running on my computer. Server 1 uses Vite, and Server 2 uses Express. Server 1 is where I go on my browser, and Server 2 is for scripts I can't run through Vite.
The home page (...
0
votes
0
answers
77
views
CORS Issue: "No 'Access-Control-Allow-Origin' Header Present" When Making API Request from Vercel Frontend to Render Backend
CORS Issue: "No 'Access-Control-Allow-Origin' Header Present" When Making API Request from Vercel Frontend to Render Backend and facing same issue while i was running in my localhost
cors is ...
1
vote
1
answer
43
views
CORS configuration for signalr UI client
I have 2 different projects with the following setup: Asp.NET Web API and Asp.NET MVC application.
I want to send signalR notifications from Web API to cshtml package in MVC applications.
[UPDATED]
On ...
0
votes
0
answers
16
views
Request header field istest is not allowed by Access-Control-Allow-Headers in preflight response in Codeigniter 3 [duplicate]
I am using Codeigniter 3. I created an API builder application, and there is an external website that wants to use the API that has been created in the API builder, let's call it portal.
I created a ...
0
votes
0
answers
32
views
The client side doesnt recognizes the cors from a dart server
I have been working in a project with Flutter. Everything its working in Flutter for Android&Ios plataform. But in web version the server side needs to use cors.
I made a backend dart application ...
-1
votes
0
answers
35
views
Cors problems with Cookie Requests
I am in the process of implementing JWT authentication via cookies and am unfortunately faced with the problem that the first authentication always works without any problems. I get a cookie back in ...
0
votes
0
answers
18
views
How to fix Firestore CORS issues only appearing on reload
I have an application created with React/Next and Firebase, using Firestore for document storage. This is a simple application with only three pages, that takes in travel details from the user (on the ...
1
vote
1
answer
77
views
How to write adapter for CORS?
Im using axum and sea-orm for my backend. i got an error with CORS.
I tried to use cors layer
I dont have any idea how to fix it. I googled it, but all the other codes work well.
i did minimal ...
-2
votes
0
answers
42
views
Angular API Insee Token Renewal Issue with CORS
I've been stuck for days without a solution. I tried to implement automatic token renewal for accessing the Insee API in my Angular project, but despite my configuration, I keep receiving the error:
&...
1
vote
1
answer
45
views
Cors request failure in clojure application
I am learning how to use reagent clojure and I am creating a password management application with some basic crud operations as well. Right now when I try to delete a password or use my password ...
0
votes
0
answers
24
views
Set CORS Preflight header Access-Control-Request-Private-Network from code
I am facing CORS policy error when I try to access resources between different DNS over http.
Working Model # 1:
Client machine in domain a1.com
WebApp in any domain but not in a1.com domain.
...
0
votes
0
answers
20
views
Odoo 17 CORS Error while triggering an API from client website
I am encountering a CORS (Cross-Origin Resource Sharing) error when making a POST request to an API endpoint in Odoo from a web page. The error occurs when the browser attempts to send data to the ...
-2
votes
0
answers
49
views
cors error in backend php server , the api is working in some devices and giving cors error in some devices
i have created a chatbot has form , and the form will send the payload to backend php server , the api will create conversation , the chatbot is fully working in some devices, and it is giving cors ...
0
votes
1
answer
25
views
CORS header ‘Access-Control-Allow-Origin’ missing error for new Cloudfare domain
My frontend, registered to the playlistmoodevaluator.com domain on Cloudflare, routes to a React CRA-based app hosted on Render.
My backend, registered to the api.playlistmoodevaluator.com subdomain ...
-1
votes
2
answers
68
views
How to allow CORS for special routes in Node.js/Express backend?
This is my current server.js.
import path from 'path';
import cors from 'cors';
import nocache from 'nocache';
import express from 'express';
import mongoose from 'mongoose';
import { fileURLToPath } ...
0
votes
0
answers
16
views
Refresh token request from client does not contain the cookie
I want to send the cookie that stores the refresh token to the server to request for a new access token.
This is the server code to resend the access token to the client by validating the refresh ...
-1
votes
3
answers
47
views
CORS issue, Cross origin error in spring boot. How do I allow CORS
I have a very pertinent issue. I built this JavaScript based on a python script that tests my server which works fine. My issue is that when I click on subscribe in the front end, I'm met with a Cors ...