Im trying to hit an api to custom subdomain(api.example.com) for analytics to the backend.
It is working fine in localhost but in hosted environment the api is giving cors error.
I guess its the issue with hostedzone configuration.
As of now backend is not at all connected to the frontend.
need help.
this is the domain where my backend is hosted(http://54.95.135.232:8080)
ive tried mapping this url to the subdomain in godaddy so that once i hit the subdomain(api.example.com) it will redirect to the backend hosted port.
but its not at all working.
Related
I am building a blog website using mern stack, I have setup the frontend and backend in the same domain in localhost. I have use axios for sending request from the frontend, all the thing works well but some of my request are coming with https protocol whereas I have not setup my application for https. due to this reason I am not able to communicate to my backend. How to solve this issue, can anyone help on this.
The image is not loading as it sends https request but I didn't set up for https.
<img src={`/${postInfo.cover}`} /> code for image tag
I have a https frontend which is making requests to the backend. After adding ssl certificate my requests are getting blocked. I cannot make my backend api https. What should i do?
FYI:
The frontend server is react, the backend is express and i am running nginx.
In order to make https requests to the backend server, i just set it as a subdomain and it all worked.
Have a firebase app (server side React) that receives a http only cookie from a firebase functions Rest API as part of the response. This works fine on localhost but when i publish to firebase hosting no cookie is received. I'm thinking its either because the FB hosting is https or it is CORS related that the cookie is not being set.
Insight and how to fix would be helpful.
Cheers
I'm trying to authenticate to saleforce using Connected App and web application, My request succeed with Postman but when I try send the request from the Web App I get CORS issue and OAuth unsupported_grant_type error
I did all the configs for the connected App and added localhost to CORS whitelist in my Salesforce Org and even hosted the web app in heroku, but still get the same ERROR !
here are the screenshots
screen 1
screen 2
i'm still stucked whith this for 2 wekks, please Help.
Thank you :)
I'm new to using aws , so really sorry if I'm asking something stupid.
I have built my angularJS app which using REST APIs that i made using spring boot. Since i call a session cookie from the same domain.
As most of my API authorizes users using http cookie
(www.example.com) and not (xyz.example.com)
I would now have to keep all my API's and client code coming from the same domain.
How can i manage that with aws ?
Any help would be great. Thanks