Deliverables:
- Correct and secure (no shortcuts!) setup of CORS.
- While you're busy, replace a line of code with an environmental variable
Our website / user portal is written in Node.js and React.js, using Express and Webpack.
Running it locally in Cloud9 IDE (so the old Cloud 9, not the one for Amazon AWS), I get a CORS error, refusing the connection between the front-end and the API.
Suspected cause is that the Cloud9 proxy produces a redirect.
So I'm looking for someone who knows everything about CORS issues.
If you're interested, please quote a fixed price.
The error:
Access to XMLHtmlRequest /name/22:1 at ‘URL’ from ‘URL’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.
The existing CORS setup:
[login to view URL]((req, res, next) => {
[login to view URL]("Access-Control-Allow-Credentials", "true");
[login to view URL]("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, *");
[login to view URL]("Access-Control-Allow-Origin", "*");
if ([login to view URL]("origin") && [login to view URL]("origin") !== "[Object object]") {
[login to view URL]("Access-Control-Allow-Origin", [login to view URL]("origin"));
}
next();
});
Hello,
What error pops up when you request resource from the client side?
I'm not sure about the proxy so I'll need to take a look on that.
Also need a bit more clarification about the 2nd task.
I've worked on cloud 9 for a client, so I know my way around.
Here's the link: [login to view URL]
How will give me access?
user and pass or as a collaborator?
Do contact me when available.
Mateen
€10 EUR in 1 day
5.0 (7 reviews)
3.0
3.0
3 freelancers are bidding on average €38 EUR for this job
Hi there,
I am a PHP developer having more than 4+ years of experience Magento.I am providing services in website design and development in (PHP/WordPress/Codeigniter/Laravel/Joomla/Magento/Drupal) Technaologies.
My Expertise -
• Language : PHP
• Design : Photoshop, PSD to HTML
• Frontend tool: HTML,bootstrap,CSS
• Backend tool: MYSQL
• Open sources CMS like wordpress MAGENTO.
• PHP frameworks like CI, Laravel.
• Payment gateways, Social media integration
We will be very happy to work with you on your project. we will meet all your requirements & deadlines also provided you the best result as your expectations.
Thanks
I do know a lot about nodeJS and I do know CORS issues. I'll try solve if for a budget of 50 € and in case if the quick solution doesn't do the trick I'll go to look at it in depth. It'll cost you max 80 €.
If you agree give it a go and I start directly. I'm here for the next few hours.
Let me know if that's what you're looking for.
Best regards
Marc