CORS error while working with React and Springboot hosted on localhost
I am trying to do an API call through a react app. The api is hosted on localhost and is build using spring boot. The react app is also hosted on localhost. This is the error I am getting :Access to...
View Articlehow to return JSON response instead of HTML from spring boot based API
I have a simple app created using spring boot version 2.7.18 and uses spring security as well. Below is WebSecurityConfig class:@Configuration@EnableWebSecuritypublic class WebSecurityConfig extends...
View ArticleGetting an 'ORA-53203: security violation' when attempting to test HTTP...
I've been trying to get Oracle to call a REST API. While getting things set up and running we ran into an issue where our code generates an ORA-53203: security violation. In the process of isolating...
View ArticleCreating a new VsCode extension and it uses third party api calling. So now...
I'm creating a vscode extension where I'm using gemini ai model to retrieve information.https://www.npmjs.com/package/@google/generative-aiNow I'm able to to achieve the goal in local If I put my api...
View ArticleiOS and Google APIs REST
I'm trying to connect to Google RESTful API's but all I get went doing so is a login screen.My goal is to be able to create a Calendar in Google Calendars using RESTful.I already created my API keys on...
View ArticleAPI Platform: Difficulties with the DateFilter filter in Symfony 7
I have a difficulty with using the DateFilter filter from my REST client.In my entity I have a field createdAt which is of type datetime. I would like to select data from a specific date, for example...
View ArticleHow do I implement a default functionality for HTTP Method in JAX-RS?
I am using JAX-RS and it has default implementations for @OPTIONS and @HEAD methods, but I would like to provide a different functionality.What I have done currently is...
View ArticleWhy am I getting response status of 204 No content in my REST server?
I am new to REST API and working with servers in general and I am trying to make a simple client-server application. I am using Jersey.Client sends some data to server, server receives the data and...
View ArticleHow to get access token in Azure
I'm trying to fetch the secrets from the Azure key vault from .Net console application using REST API. Below is the code I'm trying to use for this from net.Below way I'm trying to get access token and...
View ArticleHttp Delete request to django returns a 301(Moved permenantly)
When I do a Http DELETE request to a django app. it directly returns a 301(Moved permanantly) response and redirects me to GET request of same url. I am guessing that Http PUT request would return 301...
View ArticleWhy does files/disk return 404 and file/disk returns the desired response...
Route::post('/registration', [AuthController::class, 'register']);Route::post('/authorization', [AuthController::class, 'login']);Route::middleware('auth:sanctum')->group(function ()...
View ArticleAutomating the download of GitHub Security Overview
As you utilize GitHub Enterprise one of the features is a Security Overview Dashboard.This allows you to access information about the detection, remediation and prevention of alerts over a period of...
View Article504 Gateway timeout Springboot
I am working in a Spring boot project and I have a request which is returning a Gateway Timeout 504.Can I increase this timeout? Is this a property that I can change in the standalone-full.xml?I am...
View ArticleSuggest good rest API URL [closed]
I would like to create an API architecture based on it. I'm trying to get my head around the basic principles and have not fully understood it yet. Therefore, a number of questions.Am I understanding...
View ArticleHow avoid user resending Ajax POST request to Flask app, overwriting data?
A Python Flask app renders a HTML page, using the Geolocation API to record coordinates. Javascript then POSTS this data to the /submit_location endpoint of said Flask app to record it in a database...
View ArticleHow to prevent time out on a long-running HTTP request?
I have an API that executes a potentially long-running task that can take up to 10 minutes. This works fine when I hit the API from Postman, but when I use the API from a browser (Chrome, Safari,...
View ArticleGoogle Drive REST in iOS
My question is rather simple.After integrating Google Drive REST API I could finally download files from my Google Drive.SO I have followed this...
View ArticleWhat is the best practice for separation of concerns between business logic...
I have a NestJS API that I am currently building. Within this API, there are several routes that contain both business logic and crud logic.For example, the Users controller has crud endpoints...
View ArticleStructuring linked backend queries and storage
This is a basic question I'm hoping to get some insight on. I'm building the api controller on my front end have yet to build a backend before (ever).I have this simplified User object.User = { id:...
View ArticleHow to access request body when using Django Rest Framework and avoid getting...
I need to get the raw content of POST request body (as a string) yet when I try to access request.body I'm getting an exception:django.http.request.RawPostDataException:You cannot access body after...
View Article